Liking cljdoc? Tell your friends :D

formative.render


get-field-labelclj/s

(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".
sourceraw docstring

render-default-inputclj/s

(render-default-input field & [opts])
source

render-fieldclj/smultimethod

Render a field as Hiccup data. Dispatches on :type

Render a field as Hiccup data. Dispatches on :type
sourceraw docstring

render-formclj/smultimethod

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
sourceraw docstring

render-input-valclj/smultimethod

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.
sourceraw docstring

render-problemsclj/s

(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.
sourceraw docstring

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

× close