Liking cljdoc? Tell your friends :D

com.hyperphor.way.ss-forms


aformclj

(aform object
       fields
       &
       {:keys [action edit? cancel? submit] :or {submit "Save" cancel? true}})

form-fieldcljmultimethod


form-field-rocljmultimethod


form-field-rowcljmultimethod


form-field-warningscljmultimethod


none-valueclj


select-widgetclj

(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:

  • 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)
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)
raw docstring

select-widget-optionsclj

(select-widget-options options prompt value)

set-elementclj

(set-element s elt in?)

wformclj

(wform object fields edit?)

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

× close