(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)
(select-widget-options options prompt value)(set-element s elt in?)(wform object fields edit?)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |