Liking cljdoc? Tell your friends :D

sweet-tooth.frontend.form.components


all-input-optscljs

(all-input-opts partial-form-path input-type attr-path & [opts])

attr-path-strcljs

(attr-path-str attr-path)

checkbox-fieldcljs

(checkbox-field {:keys [data form-id tip required label no-label attr-path
                        attr-errors]
                 :as opts})

custom-optscljs


date-fmtcljs


dispatch-changecljs

(dispatch-change partial-form-path attr-path val)

dispatch-touchcljs

(dispatch-touch partial-form-path attr-path)

dispatch-validationcljs

(dispatch-validation partial-form-path attr-path validation-fn)

dissoc-custom-optscljs

(dissoc-custom-opts x)

error-messagescljs

(error-messages errors)

A list of error messages

A list of error messages
raw docstring

fieldcljsmultimethod


field-componentcljs

(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})]
raw docstring

field-optscljs


formcljs

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

framework-input-optscljs

(framework-input-opts {:keys [partial-form-path attr-path] :as opts})

handle-changecljs

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

handle-date-changecljs

(handle-date-change e partial-form-path attr-path)

inputcljsmultimethod


input-componentcljs

(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})]
raw docstring

input-keycljs

(input-key {:keys [form-id partial-form-path attr-path]} & suffix)

input-type-optscljsmultimethod


input-type-opts-defaultcljs

(input-type-opts-default
  {:keys [form-id attr-path attr-buffer format-read input-type] :as opts})

label-forcljs

(label-for form-id attr-path)

label-textcljs

(label-text attr)

on-blur-fncljs

(on-blur-fn {:keys [attr-path partial-form-path]})

on-change-fncljs

(on-change-fn {:keys [attr-path partial-form-path format-write]
               :or {format-write identity}})

on-submitcljs

(on-submit form-path & [submit-opts])

on-submit-handlercljs

(on-submit-handler form-path & [submit-opts])

post-wrapcljs

(post-wrap f1 f2)

pre-wrapcljs

(pre-wrap f1 f2)

progress-indicatorcljs

(progress-indicator state)

Show a progress indicator when a form is submitted

Show a progress indicator when a form is submitted
raw docstring

toggle-set-membershipcljs

(toggle-set-membership s v)

unparsecljs

(unparse fmt x)

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

× close