disabled property

ToggleSwitch.disabled property

Applies to Windows and Windows Phone

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

Syntax


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


var disabled = toggleSwitch.disabled;
toggleSwitch.disabled = disabled;

Property value

Type: Boolean

true if the ToggleSwitch control is disabled, false if is enabled. The default value is false.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch

 

 

Show:
© 2017 Microsoft