Fork me on GitHub
#cljfx
<
2022-08-11
>
quan xing09:08:56

How can I add some UI Component like Button in repl?

quan xing09:08:03

OK. Thank you

quan xing10:08:33

atom {:state {:input-name ""}} how can I bind :input-name to the text-field ? or in text-field's change event swap the :input-name ?

quan xing11:08:31

is the atom state need to pass parent ctrl to child ctrl from argument of the function like this?

(defn root [state]
    {:fx/type v-box ...
                  :children [ {:fx/type child-a 
                                     :state state}]}
 (defn child-a [state] {:fx/type child-a1
                        :state state})