Liking cljdoc? Tell your friends :D

sablono.core


*group*cljs


attrsclj/smacro

(attrs attributes)

Compile attributes map into a JavaScript literal.

Compile `attributes` map into a JavaScript literal.
raw docstring

check-boxcljs


check-box3202cljs

(check-box3202 name)
(check-box3202 name checked?)
(check-box3202 name checked? value)

Creates a check box.

Creates a check box.
raw docstring

color-fieldcljs


color-field3151cljs

(color-field3151 name__3102__auto__)
(color-field3151 name__3102__auto__ value__3103__auto__)

Creates a color input field.

Creates a color input field.
raw docstring

create-elementcljs

The React.js create element function.

The React.js create element function.
raw docstring

date-fieldcljs


date-field3154cljs

(date-field3154 name__3102__auto__)
(date-field3154 name__3102__auto__ value__3103__auto__)

Creates a date input field.

Creates a date input field.
raw docstring

datetime-fieldcljs


datetime-field3157cljs

(datetime-field3157 name__3102__auto__)
(datetime-field3157 name__3102__auto__ value__3103__auto__)

Creates a datetime input field.

Creates a datetime input field.
raw docstring

datetime-local-fieldcljs


datetime-local-field3160cljs

(datetime-local-field3160 name__3102__auto__)
(datetime-local-field3160 name__3102__auto__ value__3103__auto__)

Creates a datetime-local input field.

Creates a datetime-local input field.
raw docstring

defelemclj/smacro

(defelem name & fdecl)

Defines a function that will return a element vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned element value.

Defines a function that will return a element vector. If the first
argument passed to the resulting function is a map, it merges it
with the attribute map of the returned element value.
raw docstring

defhtmlclj/smacro

(defhtml name & fdecl)

Define a function, but wrap its output in an implicit html macro.

Define a function, but wrap its output in an implicit html macro.
raw docstring


(drop-down3219 name options)
(drop-down3219 name options selected)

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

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

email-fieldcljs


email-field3163cljs

(email-field3163 name__3102__auto__)
(email-field3163 name__3102__auto__ value__3103__auto__)

Creates a email input field.

Creates a email input field.
raw docstring

file-fieldcljs


file-field3166cljs

(file-field3166 name__3102__auto__)
(file-field3166 name__3102__auto__ value__3103__auto__)

Creates a file input field.

Creates a file input field.
raw docstring

file-uploadcljs


form-tocljs


form-to3228cljs

(form-to3228 [method action] & body)

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

Create a form that points to a particular method and route.
e.g. (form-to [:put "/post"]
       ...)
raw docstring

fragmentcljs

The React.js Fragment.

The React.js Fragment.
raw docstring

gen-input-fieldclj

(gen-input-field input-type)

Generate an input field of input-type.

Generate an input field of `input-type`.
raw docstring

gen-input-fieldsclj/smacro

(gen-input-fields)

Generate input fields for all input-fields.

Generate input fields for all `input-fields`.
raw docstring

hidden-fieldcljs


hidden-field3169cljs

(hidden-field3169 name__3102__auto__)
(hidden-field3169 name__3102__auto__ value__3103__auto__)

Creates a hidden input field.

Creates a hidden input field.
raw docstring

htmlclj/smacro

(html form)

Compile the Hiccup form. Produces code that evaluates to React elements when running under ClojureScript environment, or om.dom.Element records when running under Clojure.

Compile the Hiccup `form`. Produces code that evaluates to React
elements when running under ClojureScript environment, or
om.dom.Element records when running under Clojure.
raw docstring

html*clj/smacro

(html* form)

Compile the Hiccup form. Always produces code that evaluates to React elements.

Compile the Hiccup `form`. Always produces code that evaluates to
React elements.
raw docstring

html-expandclj/smacro

(html-expand form)

Macro expand the Hiccup content.

Macro expand the Hiccup `content`.
raw docstring

imagecljs


image3142cljs

(image3142 src)
(image3142 src alt)

Create an image element.

Create an image element.
raw docstring

include-csscljs

(include-css & styles)

Include a list of external stylesheet files.

Include a list of external stylesheet files.
raw docstring

include-jscljs

(include-js src)

Include the JavaScript library at src.

Include the JavaScript library at `src`.
raw docstring

include-reactcljs

(include-react)

Include Facebook's React JavaScript library.

Include Facebook's React JavaScript library.
raw docstring

input-fieldsclj

The types of HTML input fields.

The types of HTML input fields.
raw docstring

labelcljs


label3225cljs

(label3225 name text)

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

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


(link-to3122 url & content)

Wraps some content in a HTML hyperlink with the supplied URL.

Wraps some content in a HTML hyperlink with the supplied URL.
raw docstring

mail-tocljs


mail-to3125cljs

(mail-to3125 e-mail & [content])

Wraps some content in a HTML hyperlink with the supplied e-mail address. If no content provided use the e-mail address as content.

Wraps some content in a HTML hyperlink with the supplied e-mail
address. If no content provided use the e-mail address as content.
raw docstring

month-fieldcljs


month-field3172cljs

(month-field3172 name__3102__auto__)
(month-field3172 name__3102__auto__ value__3103__auto__)

Creates a month input field.

Creates a month input field.
raw docstring

number-fieldcljs


number-field3175cljs

(number-field3175 name__3102__auto__)
(number-field3175 name__3102__auto__ value__3103__auto__)

Creates a number input field.

Creates a number input field.
raw docstring

ordered-listcljs


ordered-list3137cljs

(ordered-list3137 coll)

Wrap a collection in an ordered list.

Wrap a collection in an ordered list.
raw docstring

password-fieldcljs


password-field3178cljs

(password-field3178 name__3102__auto__)
(password-field3178 name__3102__auto__ value__3103__auto__)

Creates a password input field.

Creates a password input field.
raw docstring

radio-buttoncljs


radio-button3205cljs

(radio-button3205 group)
(radio-button3205 group checked?)
(radio-button3205 group checked? value)

Creates a radio button.

Creates a radio button.
raw docstring

range-fieldcljs


range-field3181cljs

(range-field3181 name__3102__auto__)
(range-field3181 name__3102__auto__ value__3103__auto__)

Creates a range input field.

Creates a range input field.
raw docstring

reset-buttoncljs


reset-button3227cljs

(reset-button3227 text)

Creates a form reset button.

Creates a form reset button.
raw docstring

search-fieldcljs


search-field3184cljs

(search-field3184 name__3102__auto__)
(search-field3184 name__3102__auto__ value__3103__auto__)

Creates a search input field.

Creates a search input field.
raw docstring

select-optionscljs


select-options3208cljs

(select-options3208 coll)

Creates a seq of option tags from a collection.

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

submit-buttoncljs


submit-button3226cljs

(submit-button3226 text)

Creates a submit button.

Creates a submit button.
raw docstring

tel-fieldcljs


tel-field3187cljs

(tel-field3187 name__3102__auto__)
(tel-field3187 name__3102__auto__ value__3103__auto__)

Creates a tel input field.

Creates a tel input field.
raw docstring

text-areacljs


text-area3222cljs

(text-area3222 name)
(text-area3222 name value)

Creates a text area element.

Creates a text area element.
raw docstring

text-fieldcljs


text-field3190cljs

(text-field3190 name__3102__auto__)
(text-field3190 name__3102__auto__ value__3103__auto__)

Creates a text input field.

Creates a text input field.
raw docstring

time-fieldcljs


time-field3193cljs

(time-field3193 name__3102__auto__)
(time-field3193 name__3102__auto__ value__3103__auto__)

Creates a time input field.

Creates a time input field.
raw docstring

unordered-listcljs


unordered-list3132cljs

(unordered-list3132 coll)

Wrap a collection in an unordered list.

Wrap a collection in an unordered list.
raw docstring

url-fieldcljs


url-field3196cljs

(url-field3196 name__3102__auto__)
(url-field3196 name__3102__auto__ value__3103__auto__)

Creates a url input field.

Creates a url input field.
raw docstring

week-fieldcljs


week-field3199cljs

(week-field3199 name__3102__auto__)
(week-field3199 name__3102__auto__ value__3103__auto__)

Creates a week input field.

Creates a week input field.
raw docstring

with-base-urlclj/smacro

(with-base-url base-url & body)

Sets a base URL that will be prepended onto relative URIs. Note that for this to work correctly, it needs to be placed outside the html macro.

Sets a base URL that will be prepended onto relative URIs. Note
that for this to work correctly, it needs to be placed outside the
html macro.
raw docstring

with-groupclj/smacro

(with-group group & body)

Group together a set of related form fields.

Group together a set of related form fields.
raw docstring

wrap-attrscljs

(wrap-attrs func)

Add an optional attribute argument to a function that returns a element vector.

Add an optional attribute argument to a function that returns a element vector.
raw docstring

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

× close