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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

ListView

 

 

Show:
© 2014 Microsoft