Liking cljdoc? Tell your friends :D

hiccup.form

Functions for generating HTML forms and input fields.

Functions for generating HTML forms and input fields.
raw docstring

check-boxclj

(check-box attr-map? name)
(check-box attr-map? name checked?)
(check-box attr-map? name checked? value)

Creates a check box.

Creates a check box.
sourceraw docstring

(drop-down attr-map? name options)
(drop-down attr-map? name options selected)

Creates a drop-down box using the <select> tag.

Creates a drop-down box using the `<select>` tag.
sourceraw docstring

email-fieldclj

(email-field attr-map? name)
(email-field attr-map? name value)

Creates a new email input field.

Creates a new email input field.
sourceraw docstring

file-uploadclj

(file-upload attr-map? name)

Creates a file upload input.

Creates a file upload input.
sourceraw docstring

form-toclj

(form-to attr-map? [method action] & body)

Create a form that points to a particular method and route. For example:

(form-to [:put "/post"]
  ...)
Create a form that points to a particular method and route.
For example:

    (form-to [:put "/post"]
      ...)
sourceraw docstring

hidden-fieldclj

(hidden-field attr-map? name)
(hidden-field attr-map? name value)

Creates a hidden input field.

Creates a hidden input field.
sourceraw docstring

labelclj

(label attr-map? name text)

Creates a label for an input field with the supplied name.

Creates a label for an input field with the supplied name.
sourceraw docstring

password-fieldclj

(password-field attr-map? name)
(password-field attr-map? name value)

Creates a new password field.

Creates a new password field.
sourceraw docstring

radio-buttonclj

(radio-button attr-map? group)
(radio-button attr-map? group checked?)
(radio-button attr-map? group checked? value)

Creates a radio button.

Creates a radio button.
sourceraw docstring

reset-buttonclj

(reset-button attr-map? text)

Creates a form reset button.

Creates a form reset button.
sourceraw docstring

select-optionsclj

(select-options attr-map? coll)
(select-options attr-map? coll selected)

Creates a seq of option tags from a collection.

Creates a seq of option tags from a collection.
sourceraw docstring

submit-buttonclj

(submit-button attr-map? text)

Creates a submit button.

Creates a submit button.
sourceraw docstring

text-areaclj

(text-area attr-map? name)
(text-area attr-map? name value)

Creates a text area element.

Creates a text area element.
sourceraw docstring

text-fieldclj

(text-field attr-map? name)
(text-field attr-map? name value)

Creates a new text input field.

Creates a new text input field.
sourceraw docstring

with-groupcljmacro

(with-group group & body)

Group together a set of related form fields for use with the Ring nested-params middleware.

Group together a set of related form fields for use with the Ring
nested-params middleware.
sourceraw docstring

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

× close