IListDataNotificationHandler.moved method

Applies to Windows and Windows Phone

Raises a notification that an item was moved within the IListDataAdapter object's data source.

Syntax


iListDataNotificationHandler.moved(item, previousKey, nextKey, oldIndex, newIndex);

Parameters

item

Type: IItem

The item that was moved.

previousKey

Type: string

The key of the item that now precedes the new item, or null if the item was moved to the beginning of the list. If nextKey is provided, this parameter may be null.

nextKey

Type: string

The key of the item that now follows the new item, or null if the item was moved to the end of the list. If previousKey is provided, this parameter may be null.

oldIndex [optional]

Type: Number

The item's original index.

newIndex [optional]

Type: Number

The item's new index.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

IListDataNotificationHandler

 

 

Show:
© 2014 Microsoft. All rights reserved.