OptionaladdOptionaladdAdditional css class string for off state only.
OptionaladdAdditional css class string for on state only.
OptionaldisablePrevents a user click from turning an active toggle off.
Explicit onClick(false) calls can still switch it off.
OptionalgetGet current control status.
OptionalhtmlButton content, can be set for each state (on or off).
OptionalmarginSet standard outer offset. Enabled by default for bar controls.
OptionalonSet an action to execute when button clicked.
OptionalstatusBoolean state of control.
OptionalswitchEnables switch mode for toggles added to the same control container.
If true, the toggle joins the default switch group for its container.
If a string is set, only toggles with the same string are switched together.
OptionaltitleButton HTMLElement title, can be set for each state (on or off).
Additional css class string