(button title
on-click
&
{:keys [enabled? attrs modifiers waiting? children twbs-modifiers
classes]
:or {enabled? true
waiting? false
modifiers []
attrs {}
twbs-modifiers []
classes []}})
Returns Bootstrap's button with a given title
as content and on-click
handler.
Kwargs:
:enabled? - a boolean that indicates enabled/disabled state of it
:attrs - a map of attributes to override element's attributes
:modifiers - BEM modifiers
:twbs-modifiers - Bootstrap modifiers
:children - a sequence of its children components
:waiting? - a boolean that shows a spinner when true
:classes - a sequence of CSS classes
Returns Bootstrap's button with a given `title` as content and `on-click` handler. Kwargs: :enabled? - a boolean that indicates enabled/disabled state of it :attrs - a map of attributes to override element's attributes :modifiers - BEM modifiers :twbs-modifiers - Bootstrap modifiers :children - a sequence of its children components :waiting? - a boolean that shows a spinner when `true` :classes - a sequence of CSS classes
(button-factory button-type)
Helper function for creating buttons
Helper function for creating buttons
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close