Compartir a través de


Repeater.onitemsreloading event

Raised after the Repeater control's underlying data has been updated but before the updated HTML has been reloaded.

Syntax

<div 
    data-win-control="WinJS.UI.Repeater" 
    data-win-options="{onitemsreloading : handler}">
</div>
function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
repeater.addEventListener("itemsreloading", handler);
repeater.removeEventListener("itemsreloading", handler);

Event information

Synchronous No
Bubbles Yes
Cancelable Yes

 

Event handler parameters

eventInfo

Type: CustomEvent**

An object that contains information about the event. The detail property of this object contains the following sub-properties:

detail.affectedElements

The DOM elements that will be updated.

detail.setPromise

A Promise that completes after the reloading animations have completed.

Requirements

Minimum WinJS version

WinJS 2.0

Namespace

WinJS.UI

See also

Repeater