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.labelOff property

Applies to Windows and Windows Phone

Gets or sets the text that displays when the ToggleSwitch is off (checked is set to false).

Syntax


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


var labelOff = toggleSwitch.labelOff;
toggleSwitch.labelOff = labelOff;

Property value

Type: String

The text to display when the ToggleSwitch is off. The default value is "off."

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch

 

 

Show: