This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-18
Channels
- # alda (6)
- # architecture (1)
- # bangalore-clj (3)
- # beginners (39)
- # boot (292)
- # braveandtrue (1)
- # cider (7)
- # clara (2)
- # cljs-dev (20)
- # cljsjs (9)
- # cljsrn (42)
- # clojure (127)
- # clojure-chennai (1)
- # clojure-dev (96)
- # clojure-india (1)
- # clojure-russia (175)
- # clojure-spec (56)
- # clojure-uk (11)
- # clojureindia (1)
- # clojurescript (82)
- # core-async (7)
- # cursive (21)
- # data-science (1)
- # datomic (173)
- # funcool (4)
- # hoplon (8)
- # instaparse (1)
- # jobs (7)
- # jobs-discuss (1)
- # jobs-rus (30)
- # lambdaisland (1)
- # lein-figwheel (8)
- # off-topic (5)
- # om (51)
- # onyx (79)
- # other-languages (7)
- # planck (8)
- # re-frame (95)
- # reagent (6)
- # rum (8)
- # specter (4)
- # untangled (54)
- # yada (5)
@sdegutis: since you calculate the "inline style" with your clojurescript program, you can reuse your styles, just as you reuse anything in clojurescript needless to say clojurescript is a lot more powerful language than CSS for making things reusable 😉
here is an example from our project:
(defelem view [attrs elems]
(let [button-style {:f 14 :sv 36 :ph 16 :av :mid
:b 1 :bc c/grey-600 :c c/grey-100}]
(form :sh+ 450 attrs :fc c/black
:submit #(state/sign-in (:email %) (:pwd %))
(field :key :email :prompt "Email address" :autofocus true)
(field :key :pwd :prompt "Password" :content :password)
(elem :av :mid :ah :mid :p 8 :g pad-sm :sh (r 1 1)
(submit button-style (mui/anchor) :label "SIGN IN"))
elems)))
where the style for the submit
button is calculated from the attributes defined in the let
, plus the styles returned by the (mui/anchor)
function.@levitanong hey, i saw on cljsjs that you’re using plottable
do you have any examples of using that in hoplon?
@flyboarder @onetom @tbrooke @micha and anyone else interested in a Hoplon Hangout - been following the doodle, agree it's short notice. how about 12 pm EST on Monday 8/22?
Monday would be fine for me also