(checkbox-input model field)
(checkbox-input
model
field
{:keys [on-change value html] :or {on-change identity} :as options})
(checkboxes-field model field items)
(checkboxes-field model field items options)
Renders a list of checkboxes that behavior like a multi-select select element.
Renders a list of checkboxes that behavior like a multi-select select element.
(date-input
model
field
{:as options :keys [icon] :or {icon (icons/icon :calendar {:size :small})}})
(invalid? model)
Returns true if the model has any form validation errors.
Returns true if the model has any form validation errors.
(select-elem model
field
items
{:keys [transform-fn validations on-change errors html]
:or {transform-fn identity on-change identity html {}}
:as options})
Renders a select element.
model - An atom that will contain data entered into the form field - a vector describing the location in the model where the value for this field is to be saved. (As in get-in) items - The items to be rendered in the list. Each item in the list is a tuple with the value in the 1st position and the label in the 2nd.
Renders a select element. model - An atom that will contain data entered into the form field - a vector describing the location in the model where the value for this field is to be saved. (As in get-in) items - The items to be rendered in the list. Each item in the list is a tuple with the value in the 1st position and the label in the 2nd.
(select-field model field items)
(select-field model field items options)
Renders a select element within a bootstrap field-group with a label.
model - An atom that will contain data entered into the form field - a vector describing the location in the model where the value for this field is to be saved. (As in get-in) items - The items to be rendered in the list. Each item in the list is a tuple with the value in the 1st position and the label in the 2nd.
Renders a select element within a bootstrap field-group with a label. model - An atom that will contain data entered into the form field - a vector describing the location in the model where the value for this field is to be saved. (As in get-in) items - The items to be rendered in the list. Each item in the list is a tuple with the value in the 1st position and the label in the 2nd.
(text-input model
field
{:keys [html on-change validations errors]
input-type :type
:or {input-type :text on-change identity}
:as options})
(textarea-elem model field)
(textarea-elem model field {:keys [validations errors] :as options})
(typeahead-input model field {:as options :keys [errors]})
Renders an input field with typeahead search capability
model - an atom wrapping a map which contains an attribute to be updated field - a vector of fields identifying the attribute to be updated (as is get-in/update-in) options - search-fn - a fn that takes a single string argument and returns matching data records find-fn - a fn that takes the stored values and finds the corrsponding data record caption-fn - accepts a data record and returns the value to display in the field list-caption-fn - like caption-fn, but used to render a data record in the list. Uses caption-fn if not supplied value-fn - accepts a data record and returns the value to be stored in the attribute on-change - callback invoked when the value of the attribute changes html - a map of attributes to be passed directly to the input element max-items - the maximum number of matching data records to show in the list list-attr - attributes to be applied to the list HTML element
Renders an input field with typeahead search capability model - an atom wrapping a map which contains an attribute to be updated field - a vector of fields identifying the attribute to be updated (as is get-in/update-in) options - search-fn - a fn that takes a single string argument and returns matching data records find-fn - a fn that takes the stored values and finds the corrsponding data record caption-fn - accepts a data record and returns the value to display in the field list-caption-fn - like caption-fn, but used to render a data record in the list. Uses caption-fn if not supplied value-fn - accepts a data record and returns the value to be stored in the attribute on-change - callback invoked when the value of the attribute changes html - a map of attributes to be passed directly to the input element max-items - the maximum number of matching data records to show in the list list-attr - attributes to be applied to the list HTML element
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close