A new item has been inserted into the list.
Syntax
function handler(eventInfo) { /* Your code */ } // addEventListener syntax list.addEventListener("iteminserted", handler); list.removeEventListener("iteminserted", handler); - or - list.oniteminserted = handler;
Event handler parameters
- eventInfo
-
Type: CustomEvent
An object that contains information about the event. The detail contains the following information:
-
index: the index of the item in the list
-
key: the value used as the key in the getItemFromKey and indexOfKey methods
-
value: the item
-
Requirements
|
Namespace |
WinJS.Binding |
|---|---|
|
Library |
|
See also
Build date: 12/5/2012