(->caption field)
(->id field)
(->name field)
(busy-button {:keys [html caption icon busy?]})
(checkbox-field model field)
(checkbox-field model field options)
(checkbox-input model field)
(checkbox-input
model
field
{:keys [on-change value html] :or {on-change identity} :as options})
(checkbox-inputs model field items {:keys [container-html] :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.
(clean m)
Given a model that has been populated and validated by form controlrs, removes extra attributes added for those purposes.
Given a model that has been populated and validated by form controlrs, removes extra attributes added for those purposes.
(date-field model field options)
(date-input model field options)
(decimal-field model field)
(decimal-field model field options)
(decimal-input model field options)
(email-field model field)
(email-field model field options)
(float-field model field options)
(float-input model field options)
(integer-field model field options)
(integer-input model field options)
(invalid? model)
Returns true if the model has any form validation errors.
Returns true if the model has any form validation errors.
(password-field model field {:keys [new?] :as options})
(select-elem model
field
items
{:keys [transform-fn on-change 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-field model field options)
(text-input model
field
{:keys [html on-change]
input-type :type
:or {input-type :text on-change identity}
:as options})
(textarea-elem model field)
(textarea-elem model field options)
(textarea-field model field)
(textarea-field model field options)
(time-input model field options)
(typeahead-field model field options)
(typeahead-input model field options)
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