Fork me on GitHub
#hoplon
<
2016-08-18
>
onetom00:08:43

@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 😉

onetom00:08:26

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.

thedavidmeister12:08:03

@levitanong hey, i saw on cljsjs that you’re using plottable

thedavidmeister12:08:11

do you have any examples of using that in hoplon?

alandipert17:08:41

@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?

flyboarder17:08:43

Monday would be fine for me also

tbrooke18:08:50

@flyboarder: @onetom @micha - I’m in - I’m pingin @jumblerg too cuss I’d like to hear about Hoplon/ui