Partager via


ListView.resetGroupHeader property

[resetGroupHeader 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 the ListView discards or recycles the element representation of a group header.

Syntax

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

Property value

Type: ****

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

Parameter Description

header

The data for the HTML element being recycled.

element

The HTML element being recycled.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView