IListDataSource.moveAfter method

Moves an item to just after another item.

Syntax

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

Parameters

  • key
    Type: String

    The key that identifies the item to move.

  • previousKey
    Type: String

    The key of another item in the data source. The item specified by the key parameter will be moved after this item.

Return value

Type: Promise**

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

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataSource