Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ToggleSwitch.checked property

Applies to Windows and Windows Phone

Gets or sets a value that specifies whether the control is on or off.

Syntax


<div data-win-control="WinJS.UI.Toggle" data-win-options="{ checked : value}" ></div>


var checked = toggleSwitch.checked;
toggleSwitch.checked = checked;

Property value

Type: Boolean

true if the ToggleSwitch is on, or false if it is off. The default value is false.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch

 

 

Show: