A Dojo mobile switch displays a rectangular widget with an embedded knob at one side or another. The position of the knob denotes one of two alternative values. The user toggles to a different value by either clicking or dragging the knob.
The onChange event fires when the user clicks or drags the knob.
import dojo.mobile.widgets.DojoMobileSwitch;