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
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
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?
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
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:
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