Last active
March 16, 2017 19:22
-
-
Save dupuchba/c263306931800788b8b0251a4ebfef9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defui App | |
static om/IQuery | |
(query [this] | |
[{:app/lists (om/get-query ElementList)} | |
:elements/dragged]) | |
Object | |
(render [this] | |
(let [{:keys [app/lists elements/dragged]} (om/props this)] | |
(dom/div nil | |
(dom/h1 nil "Lists with draggable behavior !") | |
(map #(element-list (om/computed % {:dragging (-> this om/props :elements/dragged)})) lists))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment