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.
(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".
(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".
(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.
(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.
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.
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |