Liking cljdoc? Tell your friends :D

dgknght.app-lib.forms


->captioncljs

(->caption field)
source

->idcljs

(->id field)
source

->namecljs

(->name field)
source

busy-buttoncljs

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

checkbox-fieldcljs

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

checkbox-inputcljs

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

checkbox-inputscljs

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

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.
sourceraw 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.
sourceraw docstring

date-fieldcljs

(date-field model field options)
source

date-inputcljs

(date-input model field options)
source

decimal-fieldcljs

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

decimal-inputcljs

(decimal-input model field options)
source

decoratecljsmultimethod

source

defaultscljs

source

email-fieldcljs

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

float-fieldcljs

(float-field model field options)
source

float-inputcljs

(float-input model field options)
source

integer-fieldcljs

(integer-field model field options)
source

integer-inputcljs

(integer-input model field options)
source

invalid?cljs

(invalid? model)

Returns true if the model has any form validation errors.

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

password-fieldcljs

(password-field model field options)
source

select-elemcljs

(select-elem model
             field
             items
             {:keys [transform-fn on-change]
              :or {transform-fn identity on-change identity}
              :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.
sourceraw 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.
sourceraw docstring

spinnercljsmultimethod

source

text-fieldcljs

(text-field model field options)
source

text-inputcljs

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

textarea-elemcljs

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

textarea-fieldcljs

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

time-inputcljs

(time-input model field options)
source

typeahead-fieldcljs

(typeahead-field model field options)
source

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
sourceraw docstring

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

× close