(all-input-opts partial-form-path input-type attr-path & [opts])
(attr-path-str attr-path)
(checkbox-field {:keys [data form-id tip required label no-label attr-path
attr-errors]
:as opts})
(dispatch-change partial-form-path attr-path val)
(dispatch-touch partial-form-path attr-path)
(dispatch-validation partial-form-path attr-path validation-fn)
(dissoc-custom-opts x)
(error-messages errors)
A list of error messages
A list of error messages
(field-component all-input-opts-fn)
Adapts the interface to field
so that the caller can supply either
a) a map of opts as the only argument or b) an input-type
,
attr-path
, and input-opts
.
In the case of b, input-opts
consists only of the opts specific to
this input (it doesn't include framework opts). Those opts are
passed to the input-opts
function.
This allows the user to call [input :text :user/username {:x :y}] rather than something like
[input (all-input-opts :partial-form-path :text :user/username {:x :y})]
Adapts the interface to `field` so that the caller can supply either a) a map of opts as the only argument or b) an `input-type`, `attr-path`, and `input-opts`. In the case of b, `input-opts` consists only of the opts specific to this input (it doesn't include framework opts). Those opts are passed to the `input-opts` function. This allows the user to call [input :text :user/username {:x :y}] rather than something like [input (all-input-opts :partial-form-path :text :user/username {:x :y})]
(form partial-form-path & [opts])
Returns an input builder function and subscriptions to all the form's keys
Returns an input builder function and subscriptions to all the form's keys
(framework-input-opts {:keys [partial-form-path attr-path] :as opts})
(handle-change event partial-form-path attr-path)
Meant for input fields, where your keystrokes should update the field. Gets new value from event.
Meant for input fields, where your keystrokes should update the field. Gets new value from event.
(handle-date-change e partial-form-path attr-path)
(input-component all-input-opts-fn)
Adapts the interface to input
so that the caller can supply either
a) a map of opts as the only argument or b) an input-type
,
attr-path
, and input-opts
.
In the case of b, input-opts
consists only of the opts specific to
this input (it doesn't include framework opts). Those opts are
passed to the input-opts
function.
This allows the user to call [input :text :user/username {:x :y}] rather than something like
[input (all-input-opts :partial-form-path :text :user/username {:x :y})]
Adapts the interface to `input` so that the caller can supply either a) a map of opts as the only argument or b) an `input-type`, `attr-path`, and `input-opts`. In the case of b, `input-opts` consists only of the opts specific to this input (it doesn't include framework opts). Those opts are passed to the `input-opts` function. This allows the user to call [input :text :user/username {:x :y}] rather than something like [input (all-input-opts :partial-form-path :text :user/username {:x :y})]
(input-key {:keys [form-id partial-form-path attr-path]} & suffix)
(input-type-opts-default
{:keys [form-id attr-path attr-buffer format-read input-type] :as opts})
(label-for form-id attr-path)
(label-text attr)
(on-blur-fn {:keys [attr-path partial-form-path]})
(on-change-fn {:keys [attr-path partial-form-path format-write]
:or {format-write identity}})
(on-submit form-path & [submit-opts])
(on-submit-handler form-path & [submit-opts])
(post-wrap f1 f2)
(pre-wrap f1 f2)
(progress-indicator state)
Show a progress indicator when a form is submitted
Show a progress indicator when a form is submitted
(toggle-set-membership s v)
(unparse fmt x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close