onitemmoved event

An item is has been moved.

Syntax

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

.onitemmoved = handler;

Event handler parameters

  • eventInfo
    Type: CustomEvent**

    An object that contains information about the event. The detail contains the following information:

    • key: the value used as the key in the getItemFromKey and indexOfKey methods

    • newIndex: the new index of the item in the list

    • oldIndex: the previous index of the item in the list

    • value: the item

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding