EN
本內容沒有您的語言版本,但有英文版本。

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Winjs.js

See also

ToggleSwitch

 

 

顯示:
© 2015 Microsoft