ToggleSwitch.checked property

0 out of 2 rated this helpful - Rate this topic

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

ToggleSwitch

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.