Make grid component reactive to grid options change.

This commit is contained in:
Andrey Antukh 2016-04-13 20:46:15 +03:00
parent 49d2c54488
commit be446c6d79
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -20,7 +20,7 @@
(defn- grid-render
[own]
(let [options (:options @wb/page-l)
(let [options (:options (rum/react wb/page-l))
color (:grid/color options "#cccccc")
width c/viewport-width
height c/viewport-height
@ -43,7 +43,7 @@
(mx/component
{:render grid-render
:name "grid"
:mixins [mx/static]}))
:mixins [mx/static rum/reactive]}))
;; --- Helpers