dojox.mobile.Switch

Status:Draft
Version:1.0
Authors:Jared Jurkiewicz
Developers:Yoshiroh Kamiyama, Jared Jurkiewicz
Available:since V1.5

Switch is a toggle switch with a sliding knob. You can either tap or slide the knob to toggle the switch. It has the usual events of a switch, such as onClick and onStateChanged which fire when the switch is manipulated.

Constructor Parameters

Parameter Type Required Description
value String No The initial state of the switch. “on” or “off”. The default value is “on”
leftLabel String No The left-side label of the switch. The default value is
rightLabel String No The right-side label of the switch. The default value is

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!