labelOn property

ToggleSwitch.labelOn property

Applies to Windows and Windows Phone

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

Syntax


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


var labelOn = toggleSwitch.labelOn;
toggleSwitch.labelOn = labelOn;

Property value

Type: String

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

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch

 

 

Show:
© 2016 Microsoft