Liking cljdoc? Tell your friends :D
ClojureScript only.

re-frame-bootstrap-toggle.core


togglecljs

(toggle options)

Returns a bootstrap-toggle react component. Options are: :checked - re-frame subscription (or Reagent atom) to the state of the component :on-click - event handler to respond to on-change events :on - Label to display in on state :off - Label to display in off state :onstyle - Bootstrap color to use if the toggle is on (e.g. primary or warning) :offstyle - Like :onstyle but used if the toggle is off :disabled - whether the button is disabled

Returns a bootstrap-toggle react component. Options are:
:checked - re-frame subscription (or Reagent atom) to the state of the component
:on-click - event handler to respond to on-change events
:on - Label to display in on state
:off - Label to display in off state
:onstyle - Bootstrap color to use if the toggle is on (e.g. primary or warning)
:offstyle - Like :onstyle but used if the toggle is off
:disabled - whether the button is disabled
raw docstring

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

× close