Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListView.indexOfElement method

Applies to Windows and Windows Phone

Returns the index of the item that the specified Document Object Model (DOM) element displays.

Syntax


var number = listView.indexOfElement(element);

Parameters

element

Type: HTMLElement

The DOM element that displays the item.

Return value

Type: Number

The index of the item displayed by element.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView

 

 

Show: