Liking cljdoc? Tell your friends :D

reforms.reagent


buttoncljs

(button & args)

Button. See http://getbootstrap.com/css/#buttons

Arguments:

[attrs] label on-click [:in-progress <bool> :disabled <bool]

  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • label - button label; a string or Hiccup/Sablono style template
  • on-click - lambda to handle clicks
  • :in-progress - true to show an indicator that a background action is in progress and disable the button
  • :disabled - true to disable the button
Button. See http://getbootstrap.com/css/#buttons

Arguments:

[attrs] label on-click [:in-progress <bool> :disabled <bool]

- attrs        - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- label        - button label; a string or Hiccup/Sablono style template
- on-click     - lambda to handle clicks
- :in-progress - true to show an indicator that a background action is in progress and disable the button
- :disabled    - true to disable the button
sourceraw docstring

button-defaultcljs

(button-default & args)

Default button. See http://getbootstrap.com/css/#buttons

Arguments:

See button.

Default button. See http://getbootstrap.com/css/#buttons

Arguments:

See `button`.
sourceraw docstring

button-groupcljs

(button-group & args)

Button group.

Arguments:

[attrs] button-1 ... button-n

Button group.

Arguments:

[attrs] button-1 ... button-n

- attrs        - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
sourceraw docstring

button-primarycljs

(button-primary & args)

Primary button. See http://getbootstrap.com/css/#buttons

Arguments:

See button.

Primary button. See http://getbootstrap.com/css/#buttons

Arguments:

See `button`.
sourceraw docstring

checkboxcljs

(checkbox & args)

Checkbox. See http://getbootstrap.com/css/#checkboxes-and-radios

Arguments:

[attrs] label cursor korks value [:valid? <bool> :validation-error-fn <lambda> :inline <bool>]

  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • label - the label; a string or Hiccup/Sablono style template
  • cursor, korks - data to bind to
  • :inline - (optional) if true renders the control inline
  • :valid? - (optional) if false shows a validation error; internal
  • :validation-error-fn - (optional) lambda <korks> -> <error message>; internal
Checkbox. See http://getbootstrap.com/css/#checkboxes-and-radios

Arguments:

[attrs] label cursor korks value [:valid? <bool> :validation-error-fn <lambda> :inline <bool>]

 - attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
 - label                 - the label; a string or Hiccup/Sablono style template
 - cursor, korks         - data to bind to
 - :inline               - (optional) if true renders the control inline
 - :valid?               - (optional) if false shows a validation error; internal
 - :validation-error-fn  - (optional) lambda <korks> -> <error message>; internal
sourceraw docstring

colorcljs

(color & args)

Color input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Color input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

datecljs

(date & args)

Date input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Date input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

datetimecljs

(datetime & args)

Datetime input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Datetime input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

datetime-localcljs

(datetime-local & args)

Datetime-local input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Datetime-local input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

emailcljs

(email & args)

Email input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Email input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

formcljs

(form & args)

A form. See http://getbootstrap.com/css/#forms

Arguments:

[attrs] element1 ... element2

Examples:

(form [:div "Contents go here"])
(form {:style {:background-color "red"}} [:div "Contents go here"])
A form. See http://getbootstrap.com/css/#forms

Arguments:

[attrs] element1 ... element2

- attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- contents - (optional) the contained elements

Examples:

    (form [:div "Contents go here"])
    (form {:style {:background-color "red"}} [:div "Contents go here"])
sourceraw docstring

form-buttonscljs

(form-buttons & buttons)

Auto-aligning form buttons.

Arguments:

button-1 ... button-n

Auto-aligning form buttons.

Arguments:

button-1 ... button-n
sourceraw docstring

get-optionscljs

source

group-titlecljs

(group-title & args)

A title for a logical group of controls.

Arguments:

[attrs] title [:tag <tag-name>]

A title for a logical group of controls.

Arguments:

[attrs] title [:tag <tag-name>]

- attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- title - the title; a string or Hiccup/Sablono style template
- tag   - (optional) name of the tag to use, e.g. :h4
sourceraw docstring

html5-inputcljs

(html5-input type & args)

An HTML5-compatible input. Used internally to implement most input types.

Arguments:

type [attrs] [label] cursor korks [:in-progress BOOL] [:warn-fn LAMBDA] [help RENDERABLE] [:inline BOOL] [:large BOOL] [:placeholder STRING] [:valid? BOOL] [:validation-error-fn LAMBDA]

  • type - input type
  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • label - (optional) the label; a string or Hiccup/Sablono style template
  • cursor, korks - data to bind to
  • :in-progress - (optional) if true shows progress spinner
  • :warn-fn - (optional) a predicate invoked on the input's value; if it returns a RENDERABLE, it will be shown as a warning label
  • :help - (optional) help block
  • :inline - (optional) if true renders the control inline
  • :large - (optional) if true the input will have a larger size
  • :placeholder - (optional) the input's placeholder text
  • :valid? - (optional) if false shows a validation error; internal
  • :validation-error-fn - (optional) lambda <korks> -> <error message>; internal

RENDERABLE - string, hiccup-style markup or a React component.

An HTML5-compatible input. Used internally to implement most input types.

Arguments:

type [attrs] [label] cursor korks [:in-progress BOOL] [:warn-fn LAMBDA]
[help RENDERABLE] [:inline BOOL] [:large BOOL] [:placeholder STRING] [:valid? BOOL] [:validation-error-fn LAMBDA]

- type                  - input type
- attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- label                 - (optional) the label; a string or Hiccup/Sablono style template
- cursor, korks         - data to bind to
- :in-progress          - (optional) if true shows progress spinner
- :warn-fn              - (optional) a predicate invoked on the input's value; if it returns a RENDERABLE,
                          it will be shown as a warning label
- :help                 - (optional) help block
- :inline               - (optional) if true renders the control inline
- :large                - (optional) if true the input will have a larger size
- :placeholder          - (optional) the input's placeholder text
- :valid?               - (optional) if false shows a validation error; internal
- :validation-error-fn  - (optional) lambda <korks> -> <error message>; internal

RENDERABLE - string, hiccup-style markup or a React component.
sourceraw docstring

monthcljs

(month & args)

Month input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Month input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

numbercljs

(number & args)

Number input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Number input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

panelcljs

(panel & args)

A panel. See http://getbootstrap.com/components/#panels

Arguments:

[attrs] title [:close <lambda>] element1 ... element2

  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • title - panel title; a string or Hiccup/Sablono style template
  • :close - (optional) lambda to call when panel is closed; when the option is set, the panel shows a close icon (FontAwesome by default)
  • contents - (optional) the contained elements

Examples:

(panel "A simple panel"
    [:div "Contents go here"])
(panel {:class "my-special-panel"} "My special panel" :close #(js/alert "closed")
    [:div "Contents go here"])
A panel. See http://getbootstrap.com/components/#panels

Arguments:

[attrs] title [:close <lambda>] element1 ... element2

 - attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
 - title - panel title; a string or Hiccup/Sablono style template
 - :close - (optional) lambda to call when panel is closed; when the option is set, the panel shows a close icon (FontAwesome by default)
 - contents - (optional) the contained elements

Examples:

    (panel "A simple panel"
        [:div "Contents go here"])
    (panel {:class "my-special-panel"} "My special panel" :close #(js/alert "closed")
        [:div "Contents go here"])
sourceraw docstring

passwordcljs

(password & args)

Password input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Password input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

radiocljs

(radio & args)

Radio button. See http://getbootstrap.com/css/#checkboxes-and-radios

Arguments:

[attrs] label cursor korks value [:valid? <bool> :validation-error-fn <lambda> :inline <bool>]

  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • label - the label; a string or Hiccup/Sablono style template
  • cursor, korks - data to bind to
  • :inline - (optional) if true renders the control inline
  • :valid? - (optional) if false shows a validation error; internal
  • :validation-error-fn - (optional) lambda <korks> -> <error message>; internal
Radio button. See http://getbootstrap.com/css/#checkboxes-and-radios

Arguments:

[attrs] label cursor korks value [:valid? <bool> :validation-error-fn <lambda> :inline <bool>]

- attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- label                 - the label; a string or Hiccup/Sablono style template
- cursor, korks         - data to bind to
- :inline               - (optional) if true renders the control inline
- :valid?               - (optional) if false shows a validation error; internal
- :validation-error-fn  - (optional) lambda <korks> -> <error message>; internal
sourceraw docstring

(search & args)

Search input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Search input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

selectcljs

(select & args)

Select element. See http://getbootstrap.com/css/#selects

Arguments:

[attrs] label cursor korks options [:on-change <lambda>]

  • attrs - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
  • label - (optional) the label; a string or Hiccup/Sablono style template
  • cursor, korks - data to bind to
  • options - a vector containing options and their labels (see examples below)
  • :on-change - (optional) lambda to call on selection

Examples:

(f/select "Select" data [:select]
    [[:option1 "Option 1"] [:option2 "Option 2"] [:option3 "Option 3"]])
(f/select {:class "my-special-selector"} "Select" data [:select]
    :on-change #(js/alert @data)
    [[:option1 "Option 1"] [:option2 "Option 2"] [:option3 "Option 3"]])
Select element. See http://getbootstrap.com/css/#selects

Arguments:

[attrs] label cursor korks options [:on-change <lambda>]

- attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- label                 - (optional) the label; a string or Hiccup/Sablono style template
- cursor, korks         - data to bind to
- options               - a vector containing options and their labels (see examples below)
- :on-change            - (optional) lambda to call on selection


Examples:

    (f/select "Select" data [:select]
        [[:option1 "Option 1"] [:option2 "Option 2"] [:option3 "Option 3"]])
    (f/select {:class "my-special-selector"} "Select" data [:select]
        :on-change #(js/alert @data)
        [[:option1 "Option 1"] [:option2 "Option 2"] [:option3 "Option 3"]])
sourceraw docstring

set-options!cljs

source

spinnercljs

(spinner & args)

A spinner.

Arguments:

[attrs]

A spinner.

Arguments:

[attrs]

- attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
sourceraw docstring

telcljs

(tel & args)

Tel input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Tel input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

textcljs

(text & args)

Text input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Text input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

textareacljs

(textarea & args)

Textarea element. See http://getbootstrap.com/css/#textarea

Arguments:

[attrs] [label] cursor korks [opts]

Examples:

(f/textarea "Textarea" "A placeholder" data [:some-text])
(f/textarea {:rows 8} "Textarea" "A placeholder" data [:some-text] :inline true)
Textarea element. See http://getbootstrap.com/css/#textarea

Arguments:

[attrs] [label] cursor korks [opts]

- attrs                 - (optional) attributes handed over to React (see https://github.com/r0man/sablono#html-attributes)
- label                 - (optional) the label; a string or Hiccup/Sablono style template
- cursor, korks         - data to bind to
- opts                  - see [[html5-input]]


Examples:

    (f/textarea "Textarea" "A placeholder" data [:some-text])
    (f/textarea {:rows 8} "Textarea" "A placeholder" data [:some-text] :inline true)
sourceraw docstring

timecljs

(time & args)

Time input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Time input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

urlcljs

(url & args)

Url input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Url input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

weekcljs

(week & args)

Week input. See http://getbootstrap.com/css/#inputs

Arguments:

See html5-input

Important: May be unsupported by some popular browsers. For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp

Week input. See http://getbootstrap.com/css/#inputs

Arguments:

See [[html5-input]]

**Important:** May be unsupported by some popular browsers.
For compatilibity and available attributes see http://www.w3schools.com/html/html_form_input_types.asp
sourceraw docstring

with-optionscljmacro

(with-options & args)
source

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

× close