EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

ListView.resetItem property

Applies to Windows and Windows Phone

[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).

ParameterDescription

item

The data for the HTML element being changed or removed.

element

The HTML element being changed or removed.

 

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
itemTemplate

 

 

Anzeigen:
© 2014 Microsoft