Windows Dev Center

IListDataAdapter.moveAfter method

Applies to Windows and Windows Phone

Moves the specified item to just after another item.

Syntax


iListDataAdapter.moveAfter(key, previousKey, indexHint, previousIndexHint).done( /* Your success and error handlers */ );

Parameters

key

Type: String

A key of the item to move.

previousKey

Type: Object

The key of another item. The item to move will be moved to just after this item.

indexHint

Type: String

The index of the item to move, if known.

previousIndexHint

Type: Number

The index to move the item after, if known.

Return value

Type: Promise

A Promise that contains the IItem that was added or an EditError if an error was encountered.

Remarks

Implementing this method

When implementing this method, you should verify that the item at indexHint has the same key as key and that the item at previousIndexHint has the same key as previousKey, in case the indexes of the items have changed.

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

IListDataAdapter

 

 

Show:
© 2015 Microsoft