ListView.element property

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

Syntax

var element = listView.element;

Property value

Type: HTMLElement

The DOM element that hosts this ListView. This element is usually a div.

Remarks

Windows 8.1 In previous versions of Windows, calling the focus method on the element brought the group header into view. Starting with Windows 8.1, the focus method scrolls the first item into view.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView