Repeater.oniteminserted event

Raised after an item has been added to the Repeater control's data source and after the corresponding Document Object Model (DOM) element has been added.
Syntax
<div data-win-control="WinJS.UI.Repeater" data-win-options="{oniteminserted : handler}"> </div>
function handler(eventInfo) { /* Your code */ } // addEventListener syntax repeater.addEventListener("iteminserted", handler); repeater.removeEventListener("iteminserted", 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:
-
The DOM element for the new item.
-
The index of the new item.
-
The value used as the key in the getItemFromKey and indexOfKey methods.
-
The value of the new data item.
Requirements
|
Minimum WinJS version |
WinJS 2.0 |
|---|---|
|
Namespace |
WinJS.UI |
See also