Share via


ToggleSwitch.title property

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