Field protocol converting to/from string
Field protocol converting to/from string
(set-str-value! this val retain-str?)
Set current value by converting val from string
Set current value by converting val from string
(str-value this)
Get reaction for current value converted to string
Get reaction for current value converted to string
(mark-error! this error)
(mark-ok! this)
(start-validation! this)
Field/form errors
Field/form errors
(errors this)
Get reaction for current field/form errors
Get reaction for current field/form errors
Persistent error is retained between validations. Has to be explicitly set and cleared.
Persistent error is retained between validations. Has to be explicitly set and cleared.
(set-error! this error)
Set 1 error for the field. Error can be cleared by calling clear-error!
Set 1 error for the field. Error can be cleared by calling clear-error!
Protocol for accessing original value
Protocol for accessing original value
(original-value this)
Get original value of the form/field
Get original value of the form/field
(reset-value! this)
Reset form/field to the original value, clear errors
Reset form/field to the original value, clear errors
Protocol for forced validation.
Protocol for forced validation.
(touch! this)
Touch the field/form
Touch the field/form
(touched? this)
Get reaction with current touch status
Get reaction with current touch status
Field/form validation status
Field/form validation status
(valid? this)
Get reaction for current validation status of the form/field
Get reaction for current validation status of the form/field
Protocol for value holder
Protocol for value holder
(set-value! this val)
Set current value
Set current value
(value this default)
Get reaction for current value
Get reaction for current value
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close