Functions and items to utilize Bootstrap 5 forms and input styles and utilities.
Functions and items to utilize Bootstrap 5 forms and input styles and utilities.
(col-label & children)(col-label attrs & children)A form label that is also a column, to be used to make 'horizontal forms'. Also add a column class like 'col-2' to this item.
A form label that is also a column, to be used to make 'horizontal forms'. Also add a column class like 'col-2' to this item.
(toggle-button & contents)(toggle-button attrs & contents)A button that act like a checkbox form input, toggling its boolean state.
A button that act like a checkbox form input, toggling its boolean state.
(validated-form & content)(validated-form attrs & content)A form, that disables the default html5 form validation, and adds the 'was-validated' class to the form in case the submit of an invalid form is attempted. Removes that class when a valid form is submitted.
To declare the validity of form inputs, use :required,
:pattern, :invalid, :validate etc. attributes on the input
items. To show a more detailed error message to the user,
add invalid-feedback or invalid-tooltip next to the input
elements.
A form, that disables the default html5 form validation, and adds the 'was-validated' class to the form in case the submit of an invalid form is attempted. Removes that class when a valid form is submitted. To declare the validity of form inputs, use `:required`, `:pattern`, `:invalid`, `:validate` etc. attributes on the input items. To show a more detailed error message to the user, add [[invalid-feedback]] or [[invalid-tooltip]] next to the input elements.
(validated-form* & content)(validated-form* attrs & content)Like validated-form, but with a public 'was validated' state,
which is set when an invalid form is attempted to be
submitted. Unlike validated-form that state is not reset
automatically.
Like [[validated-form]], but with a public 'was validated' state, which is set when an invalid form is attempted to be submitted. Unlike [[validated-form]] that state is not reset automatically.
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 |