Skip to main content
onitemchanged event

Applies to Windows and Windows Phone

An item in the list has changed its value.


function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
.addEventListener("itemchanged", handler);
.removeEventListener("itemchanged", handler);
- or -

.onitemchanged = handler;

Event handler parameters


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

  • newItem: the new key. The field contains the item.

  • newValue: the new item

  • oldItem: the old key. The field contains the item.

  • oldValue: the old item


Minimum WinJS version

WinJS 1.0