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 supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS.UI |
|
Library |
|
See also
Build date: 12/5/2012