ToggleSwitch.element property

Gets the Document Object Model (DOM) element that hosts the ToggleSwitch.

Syntax

var element = toggleSwitch.element;

Property value

Type: HTMLElement

The DOM element that hosts the ToggleSwitch. This element is usually a div.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ToggleSwitch