checked property

ToggleSwitch.checked property

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

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 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.UI

Library

Ui.js

See also

ToggleSwitch

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft