ListView.elementFromIndex method

Returns the Document Object Model (DOM) element that represents the item at the specified index.

Syntax

var htmlElement = listView.elementFromIndex(itemIndex);

Parameters

  • itemIndex
    Type: Number

    The index of the item.

Return value

Type: HTMLElement

The DOM element that represents the item at the specified index.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView