(aform object
fields
&
{:keys [action edit? cancel? submit] :or {submit "Save" cancel? true}})
(select-widget id value dispatch options prompt on-change & [disabled? styles])
Render a select widget. id: HTML id value: the current value (typically a rf/subscribe) options: a seq, each elt is either:
Render a select widget. id: HTML id value: the current value (typically a rf/subscribe) options: a seq, each elt is either: - a string - a map of the form {:value ... :label ...} - a map of the form {:optgroup <name> :options <seq>} prompt: a value to display initially before a value is selected, and can be used to choose nil Note: select widget doesn't have a separate prompt, so gets added to the option list. If you don't want nil to be selectable, omit prompt (yes prompt is complecting a couple of things, but it works out)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close