[ClojureScript] Web UI DSL

2015-03-14 Thread Roberto Oliveros
Hello everyone! For the past months I've been working on a project that I want to share with you. Its a DSL for describing web user interfaces based on Om and Bootstrap and you can reach it here: https://github.com/roboli/full-control Now a disclaimer, I'm not a computer scientist or clojure

[ClojureScript] Re: Using bootstrap dropdown with Om

2014-07-14 Thread Roberto Oliveros
On Friday, July 11, 2014 7:41:49 PM UTC-6, Roberto Oliveros wrote: This what I have: (defn view [cursor owner] (reify om/IDidMount (did-mount [_] (- (js/$ .dropdown-toggle) (.dropdown))) om/IRender (render [_] (dom/div #js {:className

[ClojureScript] Consequences of not closing channels in browser?

2014-07-11 Thread Roberto Oliveros
I'm using Om for the client side and through the lifetime of the application many components gets mounted/unmounted. When mounted, various channels are opened (in go blocks). And I'm planning to use IWillUnmount to close them too. But first, my questions are: What happens to unclosed channels?

[ClojureScript] Using bootstrap dropdown with Om

2014-07-11 Thread Roberto Oliveros
This what I have: (defn view [cursor owner] (reify om/IDidMount (did-mount [_] (- (js/$ .dropdown-toggle) (.dropdown))) om/IRender (render [_] (dom/div #js {:className dropdown} (dom/button #js {:className btn btn-default dropdown-toggle

[ClojureScript] Editing Om input properly with a set :value

2014-06-04 Thread Roberto Oliveros
I need to display an input element with an initial value read from a cursor, but I don't need to update the cursor back when the user enters the new text. For example: (defn my-comp [app owner] (reify om/IRender (render [_] (dom/div nil (dom/label nil Enter text:

Re: [ClojureScript] Editing Om input properly with a set :value

2014-06-04 Thread Roberto Oliveros
On Wednesday, June 4, 2014 9:44:24 AM UTC-6, Sean Grove wrote: If you just want the value set initially, and you want the user to be able to change it freely, you can use the :defaultValue attribute instead of :value. On Wed, Jun 4, 2014 at 8:33 AM, Roberto Oliveros roberto