reforms.core.options
Configuration options. You can override the defaults using set-options! or with-options.
*options*
dynamic
Note that top-level key corresponds to a helper in reforms.core.
Common for all form helpers:
- :attrs - specify attributes to be passed to React node; see see https://github.com/r0man/sablono#html-attributes
Example:
;; Set background of every form to red color.
(set-options! {:form {:attrs {:style {:background-color "red"}}}})
- :icon-warning - icon to represent a warning
- :form - options for reforms.core/form
- :horizontal - set to true for horizontal orientation; see http://getbootstrap.com/css/#forms-horizontal
- :label-column-class - class for the label column (horizontal orientation only), e.g. “col-sm-3”
- :input-column-class - class for the input column (horizontal orientation only), e.g. “col-sm-9”
- :panel - options for reforms.core/panel
- :icon-close - close panel icon
- :html5-input - options for reforms.core/html5-input, common for all helpers based on it, e.g. reforms.core/text
- :text - options for reforms.core/text Same as for :html-5-input
- group-title - options for reforms.core/group-title
- :tag - tag to use, e.g. :h4
- button-group - options for reforms.core/button-group
- :spinner - options for reforms.core/spinner.
… Each helper is supported - :password, :select, :color etc. see reforms.core for available form helpers…
For the defaults, see the source.