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

Applies to Windows and Windows Phone

Gets or sets the main text for the ToggleSwitch control. This text is always displayed, regardless of whether the control is switched on or off.

Syntax


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


var title = toggleSwitch.title;
toggleSwitch.title = title;

Property value

Type: String

HTML that provides the main text for the control.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch

 

 

Show: