Hi Dan
How would you recommend dealing with drag/drop in reagent?
I probably want to use the goog.fx.DragDrop functionality and move nodes
between parents (components)
However, reparenting like this seems like a great way to confuse react
(defn- ondrop [event]
(let [ti (.-element (.-dropTargetItem event))
si (.-element (.-dragSourceItem event))]
(set! (.-background (.-style ti)) "silver")
(dom/append ti (dom/removeNode si))))
rather I should be update the atom appropriately and redraw the component with
a new node or not, which means the component needs to know that there are items
to be rendered that won't be there to start with and so on. Seems a bit more
complicated.
Thanks
Ritchie
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.