Fork me on GitHub
#fulcro
<
2020-02-06
>
otwieracz12:02:18

<Button secondary>Secondary</Button> how can I write something like that in fulcro dom?

pvillegas1212:02:57

Pass in :secondary true to the factory for that component

tony.kay20:02:40

See also react interop in the book

tony.kay20:02:30

you need a factory, and as @U6Y72LQ4A says the JSX notation you’re using is a shorthand for saying “set secondary to true”.

thosmos17:02:54

@UB0EMUD34 using Fulcro’s Semantic-UI wrappers, I have something like:

(ui-form-dropdown {:search       true
                                 :selection    true
                                 :autoComplete "off"
                                 :value        (:db/id Station)
                                 :options      station-options
                                 :style        {:maxWidth 168}
                                 :onChange     (fn [_ d]
                                                 (when-let [value (-> d .-value)]
                                                   (log/debug "site change" value)
                                                   (set-ref! this :sitevisit/Station value)))}) 

otwieracz12:02:37

Not necessarily fulcro dom, but how to pass it to react factory.

otwieracz12:02:42

This unary secondary