(select-map items val-atom k)(select-map {:keys [on-change nav?] :as options} items val-atom k)select one item from a seq of items parameters: options: this is an optional parameter, a map with keys: on-change fn with parameter selected-val nav? bool (show < > buttons) items: vec of selectable items val-atom: map inside an atom k: the key that the selected value is bound to in the val-atom
examle: (def state reagent.core/atom {:letter "a"}) [select-map ["a" "b"] state :letter]
select one item from a seq of items
parameters:
options: this is an optional parameter, a map with keys:
on-change fn with parameter selected-val
nav? bool (show < > buttons)
items: vec of selectable items
val-atom: map inside an atom
k: the key that the selected value is bound to in the val-atom
examle:
(def state reagent.core/atom {:letter "a"})
[select-map ["a" "b"] state :letter]
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 |