Compartilhar via


ListView.resetItem property

[resetItem may be altered or unavailable for releases after Windows 8.1. Instead, mark the header element as disposable by using WinJS.Utilities.WinJS.Utilities.markDisposable. ]

Gets or sets the function that is called when an item is removed, an item is changed, or an item falls outside of the realized range of the ListView.

Syntax

<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{ resetItem : value}" >
</div>
var resetItem = listView.resetItem;
listView.resetItem = resetItem;

Property value

Type: Function

A function with the following signature: function(item, element).

Parameter Description

item

The data for the HTML element being changed or removed.

element

The HTML element being changed or removed.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView

itemTemplate