DojoMobileSwitch
The DojoMobileSwitch widget creates a switch, which is a toggle switch with a slider. You can either tap or drag the slider to toggle the switch.
Note:
To import the selected sample, you must install
and use the local help.
Properties
- value
- The status of the switch. It is a Boolean value. The default value is false.
- onText
- The text that displays when the switch is on. The default value is On.
- offText
- The text that displays when the switch is off. The default value is Off.
Events
- onChange
- Specifies an event that occurs when the switch value is changed.