Questions tagged [om]

A ClojureScript interface to Facebook's React.

om allows their users to represent data as Extensible Data Notation (EDN).


Documentation

139 questions
0
votes
1 answer

How do I use Google Charts in Clojurescript with om?

I am a Clojurescript newbie and looking to port over my backbone.js based application onto CLojurescript + om. I have gone over the om tutorials and yet I do no understand how to display a chart using Google charts' syntax etc. in my clojurescript…
user193116
  • 3,498
  • 6
  • 39
  • 58
0
votes
1 answer

How do I update Om component state after app state?

I'm trying to play with Om (yes, I know om.next is coming, but it's not clear when it will be ready--and I think the basic idea will apply), but have run into a simple (or should be) problem. I have a component with a select widget that populates…
vputz
  • 163
  • 8
0
votes
2 answers

Syntax for giving a button a particular width

How do you set a button to a particular width? This is one of the things I have tried so far: (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom]) (defui HelloWorld Object (render [this] (dom/button #js {:style…
Chris Murphy
  • 6,411
  • 1
  • 24
  • 42
0
votes
0 answers

cannot read property 'force_children' of undefined om alpha26

My app was working correctly until I decided to upgrade to om-alpha26. Now I'm getting: Cannot read property 'force_children' of undefined I have tried deleting my target folder and executing 'lein clean' to no avail. Nothing comes up on google, I…
Leeondamiky
  • 161
  • 3
0
votes
2 answers

ClojureScript, Om, and Om-Bootstrap: Click Button, Make Inputs Editable

I am creating a page that displays, and then edits, renter info using om-boostrap. (I know Clojure, but am new to CLJS/Om/React/modern web development in general.) The UI and functionality between displaying and editing tenant info is similar --…
MonkeyWithDarts
  • 755
  • 1
  • 7
  • 17
0
votes
1 answer

How to propagate text in input onChange with React/Om

As a React/Om newbie I am not sure if this issue is Om-specific. I want to build a date entry component based on free text entry. It includes an field where they can type, and a

displaying the parsed date (if it's valid). I implemented…

Konrad Garus
  • 53,145
  • 43
  • 157
  • 230
0
votes
1 answer

Om ref cursor not re-rendering components when updated

(ns ^:figwheel-always refs-test.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true] [sablono.core :as html :refer-macros [html]])) (enable-console-print!) (def app-state (atom {:items…
Antony Woods
  • 4,415
  • 3
  • 26
  • 47
0
votes
1 answer

dynamic stylesheets in om

I have an ClojureScript Om app with different pages which are actually just different components in the same app, each page can have some different components that have different stylesheets. Some of these stylesheets are quite complex and can…
shmish111
  • 3,697
  • 5
  • 30
  • 52
0
votes
1 answer

Clojurescript/OM persist app-state through refresh

I followed the basic tutorial on OM's github Basic Tutorial which is a simple form which enables the array of contacts stored within the app state to be modified however, these modifications are 'reset' upon page refresh. If i remove 3 people from…
Chris Edwards
  • 1,518
  • 2
  • 13
  • 23
0
votes
1 answer

Om/Clojurescript: Issue rendering a reset application state

I am trying to display a component with om, as soon as the data needed for this widget arrives. I came up with the following (roughly): (def data (atom {})) (go (let [response (
wirrbel
  • 3,173
  • 3
  • 26
  • 49
0
votes
1 answer

New chestnut project: Editing app-state doesn't refresh browser

After getting hyped by Nolen's great talks, I decided to give Clojurescript and Om a go. Everything works as advertised - except I'm a bit surprised that editing the app-state doesn't refresh the browser like editing style.css or the Om component…
Kurt Mueller
  • 3,173
  • 2
  • 29
  • 50
0
votes
1 answer

What is the difference between using defmulti and defn as a function of om/build-all?

om "0.8.0" I have recently started learning om by using examples codes of om repository. Now, I am checking multi example and I can understand the behavior of this program. After I clicked '+' button, First, "Even(or Odd) widget unmounting" is…
snufkon
  • 301
  • 4
  • 8
0
votes
1 answer

ScrollSpy with Om

I'd like to get Om to work with ScrollSpy. I'm currently using this code: (defn main-component [data owner] (om/component (dom/div #js {:className "col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2 main"} (dom/div #js…
David J.
  • 31,569
  • 22
  • 122
  • 174
0
votes
1 answer

Om not reflecting changes even after swap! app-state

Using Light Table, how do I tell Om to re-render the DOM after eval'ing a modified Om function? Forcing a swap! on the main state atom has no effect: (swap! app-state identity) Cycling routes explicitly with (swap! app-state assoc :current-page…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
0
votes
2 answers

Backing components in Om — Are they React Components or Om Components?

I'm learning Om. The Om documentation makes frequent use of the phrase "the backing Om component". I'm fairly sure that should be "the backing React component", a phrase that is used in the Om Basic Tutorial. Can someone verify that? Edit: Actually…
Simon K
  • 171
  • 5
1 2 3
9
10