(atom? a)
ducktype an atom as something dereferable
ducktype an atom as something dereferable
(checkbox {:keys [READ UPDATE valpath] :as fn-map}
{:keys [validation-function disabled style-classes] :as input-map})
Create a checkbox
Create a checkbox
(checkset {:keys [READ UPDATE valpath default-value]})
If a checkbox value is nil, set it; otherwise, return it.
If a checkbox value is nil, set it; otherwise, return it.
(hidden-input input-map)
Generate a hidden input
Generate a hidden input
(map-structure v)
Produce a map with the same key-structure from the vector
Produce a map with the same key-structure from the vector
(render-application fm fn-map & [pathv])
Render teh editable application.
fm
is the schema of the application, a vector laying out the fields and their attributes.
fn-map
is either an Atom to hold the information a user inputs, or a map
Render teh editable application. `fm` is the schema of the application, a vector laying out the fields and their attributes. `fn-map` is either an Atom to hold the information a user inputs, or a map
(render-label {:keys [for-id label-text]})
Create a label to go into a .row
Create a label to go into a .row
(render-review schema application)
Parse the application map and render the review based on the ordered schema
of the application, with values in application
expected to be as given by render-application
.
Resulting form will be read-only with no changes possible.
Parse the application map and render the review based on the ordered `schema` of the application, with values in `application` expected to be as given by `render-application`. Resulting form will be read-only with no changes possible.
(reset-default default-schema-vec)
(reset-default A default-schema-vec)
Reset the given atom to a default state based on a default map, where it will possess each of the (possibly nested) structural elements of the given default, but values only according to an internal :default
Reset the given atom to a default state based on a default map, where it will possess each of the (possibly nested) structural elements of the given default, but values only according to an internal :default
(text-area opt-map)
Renders :type :textarea
elements. In addition to the usual
opts includes optional :rows
for the html "rows=" attribute.
Renders `:type :textarea` elements. In addition to the usual opts includes optional `:rows` for the html "rows=" attribute.
(tinput {:keys [READ UPDATE] :as fn-map} valpath & [opt-map])
Produce data-bound inputs for a given map, using :READ
and :UPDATE
for values and changes. opt-map
specifies options including display variables.
Produce data-bound inputs for a given map, using `:READ` and `:UPDATE` for values and changes. `opt-map` specifies options including display variables.
(to-validation f & [error-message])
Given a predicate, wrap it properly to be a validation function for tinput.
Validation function runs on the input at every change, altering the validity of the element as prescribed. It waits for .checkValidity on the input to explain the error
Given a predicate, wrap it properly to be a validation function for tinput. Validation function runs on the input at every change, altering the validity of the element as prescribed. It waits for .checkValidity on the input to explain the error
(togglebox {:keys [label content valpath READ UPDATE default-value
override-inline? open-height disabled style-classes]
:or {open-height "5em"}
:as opt-map})
Builds a group which, when toggled, displays its :content
Builds a group which, when toggled, displays its `:content`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close