Not really... It's more clojure-y :-)
On Wed, Apr 9, 2014 at 5:11 PM, lei shulang <[email protected]> wrote: > On Tuesday, April 8, 2014 6:13:29 PM UTC-6, Christian Fortin wrote: > > On Tuesday, April 8, 2014 5:43:12 PM UTC-4, lei shulang wrote: > > > I get that I can add :on-click etc. directly in hiccup. But how do I > add drag and drop event listeners properly? > > > > The same way you would for other events, such as your :on-click example. > > > > Here's a little something to get you started: > > https://www.refheap.com/73581 > > > > Also, getting info from things *while* you are dragging can be quite > difficult. > > I'd suggest using storage-atom for this: > https://github.com/alandipert/storage-atom. It plays quite well with > Reagent. > > Ah... thanks. Any reason why on-drag-over is used instead of > ondragover/onDragOver etc.? > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to a topic in the > Google Groups "ClojureScript" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojurescript/RTIPDlNFScI/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
