A toggle represents a physical switch that allows someone to choose between two mutually exclusive options. For example, "On/Off", "Show/Hide". Choosing an option should produce an immediate result.
|Current value of the toggle.|
|string||A label for the toggle.|
|Whether the label (not the onText/offText) should be positioned inline with the toggle control.|
|string||Text to display when toggle is ON. Caution: when not providing on/off text user may get confused in differentiating the on/off states of the toggle.|
|string||Text to display when toggle is OFF. Caution: when not providing on/off text user may get confused in differentiating the on/off states of the toggle.|
|string||Additional data attached to the control. The value is passed in |
change event data along with a toggle state.
|Fires when the state of toggle is changed.|