This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-26
Channels
- # beginners (5)
- # cider (4)
- # clojure (60)
- # clojure-austin (1)
- # clojure-berlin (1)
- # clojure-dev (6)
- # clojure-italy (5)
- # clojure-spec (2)
- # clojure-uk (2)
- # clojurescript (13)
- # community-development (17)
- # cursive (5)
- # datomic (11)
- # fulcro (9)
- # hoplon (5)
- # jobs-rus (2)
- # om (1)
- # parinfer (1)
- # protorepl (15)
- # re-frame (10)
- # reagent (12)
- # sql (5)
- # unrepl (3)
ehhh https://github.com/mpowaga/react-slider how do I call the getValue method on the component?
@deadghost (.getValue (r/current-component))
Though I'd think the current value is also the parameter on onChange function
For some reason i’m able to pass in all of the style props except for the grid positioning props. I see in the Firefox dev tools that every inline prop except for those were passed
(defn letter [l color bg-color grid-pos-vec]
[:div {:style {:text-transform "uppercase"
:background-color bg-color
:color color
:height "90%"
:padding-top "20px"
:padding-left "20px"
:grid-column-start (int (nth grid-pos-vec 0))
:grid-column-end (int (nth grid-pos-vec 1))
:grid-row-start (int (nth grid-pos-vec 2))
:grid-row-end (int (nth grid-pos-vec 3))}}
[:h1 l]])
I get no compilation errors. When I manually add those props in dev tools, it works as expected
(defn letter [l color bg-color grid-pos-vec]
[:div {:style {:text-transform "uppercase"
:background-color bg-color
:color color
:height "90%"
:padding-top "20px"
:padding-left "20px"
:grid-column (str (nth grid-pos-vec 0)
" / "
(nth grid-pos-vec 1))
:grid-row (str (nth grid-pos-vec 2)
" / "
(nth grid-pos-vec 3))
:border-radius 5}}
[:p l]])