Liking cljdoc? Tell your friends :D

dgknght.app-lib.forms


->captioncljs

(->caption field)

->idcljs

(->id field)

->namecljs

(->name field)

busy-buttoncljs

(busy-button {:keys [html caption icon busy?]})

checkbox-fieldcljs

(checkbox-field model field)
(checkbox-field model field options)

checkbox-inputcljs

(checkbox-input model field)
(checkbox-input
  model
  field
  {:keys [on-change value html] :or {on-change identity} :as options})

checkbox-inputscljs

(checkbox-inputs model field items {:keys [container-html] :as options})

checkboxes-fieldcljs

(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.
raw docstring

cleancljs

(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.
raw docstring

date-fieldcljs

(date-field model field options)

date-inputcljs

(date-input model field options)

decimal-fieldcljs

(decimal-field model field)
(decimal-field model field options)

decimal-inputcljs

(decimal-input model field options)

decoratecljsmultimethod


defaultscljs


email-fieldcljs

(email-field model field)
(email-field model field options)

float-fieldcljs

(float-field model field options)

float-inputcljs

(float-input model field options)

integer-fieldcljs

(integer-field model field options)

integer-inputcljs

(integer-input model field options)

invalid?cljs

(invalid? model)

Returns true if the model has any form validation errors.

Returns true if the model has any form validation errors.
raw docstring

password-fieldcljs

(password-field model field {:keys [new?] :as options})

select-elemcljs

(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.
raw docstring

select-fieldcljs

(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.
raw docstring

spinnercljsmultimethod


text-fieldcljs

(text-field model field options)

text-inputcljs

(text-input model
            field
            {:keys [html on-change]
             input-type :type
             :or {input-type :text on-change identity}
             :as options})

textarea-elemcljs

(textarea-elem model field)
(textarea-elem model field options)

textarea-fieldcljs

(textarea-field model field)
(textarea-field model field options)

time-inputcljs

(time-input model field options)

typeahead-fieldcljs

(typeahead-field model field options)

typeahead-inputcljs

(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
raw docstring

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

× close