다음을 통해 공유


ListView.indexOfElement method

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