Liking cljdoc? Tell your friends :D

pinkgorilla.controls.select


csscljs

(css)
source

go-nextcljs

(go-next v list action)
source

go-priorcljs

(go-prior v list action)
source

(nav-buttons items v change-fn)
source

selectcljs

(select items val change-fn)
source

select-mapcljs

(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]
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close