Liking cljdoc? Tell your friends :D

reacl-basics.forms

Functions and classes to build user input forms based on app-states and declarative client side validation.

Functions and classes to build user input forms based on app-states
and declarative client side validation.
raw docstring

button-resetcljs

(button-reset & content)
(button-reset attrs & content)

Returns a dom/button element with optional attrs and content, and :type "reset".

Returns a `dom/button` element with optional `attrs` and `content`, and `:type` "reset".
sourceraw docstring

button-submitcljs

(button-submit & content)
(button-submit attrs & content)

Returns a dom/button element with optional attrs and content, and :type "submit".

Returns a `dom/button` element with optional `attrs` and `content`, and `:type` "submit".
sourceraw docstring

formcljs

(form & content)
(form attrs & content)

A non-app-state class with an optional attrs and arbitrary content arguments which renders as a dom/form element. The events :onsubmit and :onreset must be assigned functions taking an event and returning a reacl/return value.

A non-app-state class with an optional `attrs` and arbitrary
`content` arguments which renders as a `dom/form` element. The
events `:onsubmit` and `:onreset` must be assigned functions taking
an event and returning a `reacl/return` value.
sourceraw docstring

input-checkboxcljs

(input-checkbox)
(input-checkbox attrs)

An app-state class with an optional attrs argument, which renders as an dom/input with :type "checkbox" representing the app-state.

An app-state class with an optional `attrs` argument, which renders
as an `dom/input` with `:type` "checkbox" representing the
app-state.
sourceraw docstring

input-filecljs

source

input-filescljs

source

input-intcljs

source

input-numbercljs

An app-state class that renders as a dom/input to allow the user to edit the number corresponding to the app-state. The app-state may become nil, if the text the user currently entered is empty or not parsable as a number.

An app-state class that renders as a
`dom/input` to allow the user to edit the number corresponding to
the app-state. The app-state may become nil, if the text the user
currently entered is empty or not parsable as a number.
sourceraw docstring

input-radiocljs

(input-radio)
(input-radio attrs)

An app-state class with an optional attrs argument, which renders as an dom/input with :type "radio" representing the app-state.

An app-state class with an optional `attrs` argument, which renders
as an `dom/input` with `:type` "radio" representing the
app-state.
sourceraw docstring

input-textcljs

(input-text)
(input-text attrs)

An app-state class that renders as a dom/input of :type "text", with a value corresponding to its app-state. Note that you can override the :type in the attrs, to get some predefined validators for the app-state string value. Typical other types are "email", "password", "url". Note that with type "number", you still get a string value as the app-state - use input-number for actual number values.

An app-state class that renders as a `dom/input` of `:type
"text"`, with a `value` corresponding to its app-state.  Note that
you can override the `:type` in the attrs, to get some predefined
validators for the app-state string value. Typical other types are
"email", "password", "url". Note that with type "number",
you still get a string value as the app-state - use [[input-number]]
for actual number values.
sourceraw docstring

selectcljs

(select & content)
(select attrs & content)

An app-state class with an optional attrs argument and arbitrary content elements, which renders as a dom/select where the :value attribute represents the app-state.

An app-state class with an optional `attrs` argument and
arbitrary `content` elements, which renders as a `dom/select` where
the `:value` attribute represents the app-state.
sourceraw docstring

textareacljs

(textarea)
(textarea attrs)

An app-state class with an optional attrs argument, which renders as a dom/textarea with the app-state as the editable content.

An app-state class with an optional `attrs` argument, which renders
as a `dom/textarea` with the app-state as the editable content.
sourceraw docstring

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

× close