cljfx

quan xing 2022-08-11T09:41:56.143219Z

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

vlaaad 2022-08-11T09:43:29.862369Z

I'd suggest exploring this example https://github.com/cljfx/cljfx/blob/master/examples/e12_interactive_development.clj

quan xing 2022-08-11T09:50:03.806879Z

OK. Thank you

quan xing 2022-08-11T10:52:33.883719Z

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 xing 2022-08-11T11:12:31.978019Z

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})