(get-field-label field)
Determines what to use for a field's label. Uses the :label key if set, otherwise renders :name as a string - e.g., :foo-bar => "Foo Bar".
Determines what to use for a field's label. Uses the :label key if set, otherwise renders :name as a string - e.g., :foo-bar => "Foo Bar".
Render a field as Hiccup data. Dispatches on :type
Render a field as Hiccup data. Dispatches on :type
Renders a form, dispatching on :renderer in form-attrs. Can return any representation of a form that the implementor chooses - Hiccup data, string, etc.
This multimethod exists as an extension mechanism for anyone that wants to build their own form renderer. Library consumers should call formative.core/render-form.
Arguments: form-attrs - HTML attributes of the form, plus a :renderer key fields - normalized, prepared fields to include in the form opts - the full form specification with all keys untouched
Renders a form, dispatching on :renderer in form-attrs. Can return any representation of a form that the implementor chooses - Hiccup data, string, etc. This multimethod exists as an extension mechanism for anyone that wants to build their own form renderer. Library consumers should call formative.core/render-form. Arguments: form-attrs - HTML attributes of the form, plus a :renderer key fields - normalized, prepared fields to include in the form opts - the full form specification with all keys untouched
Renders the value of an input field as a string, if it's not already.
Renders the value of an input field as a string, if it's not already.
(render-problems problems & [fields])
Renders a form problems as Hiccup data. Lists the each set of keys with their corresponding message.
Renders a form problems as Hiccup data. Lists the each set of keys with their corresponding message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close