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.

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.
Note: To import the selected sample, you must install and use the local help.
Related reference:
EGL mobile widget base class
Related information:
Developing with the EGL Dojo mobile widgets
Rich UI Handler part
Local help content installations
Importing EGL Dojo mobile widgets sample
Importing EGL Dojo mobile widgets runtime

Feedback