IListDataAdapter.moveBefore method
Moves the specified item to just before another item.
Syntax
iListDataAdapter.moveBefore(key, nextKey, indexHint, nextIndexHint).done( /* Your success and error handlers */ );
Parameters
key
Type: StringA key of the item to move.
nextKey
Type: ObjectThe key of another item. The item to move will be moved to just before this item.
indexHint
Type: StringThe index of the item to move, if known.
nextIndexHint
Type: NumberThe index to move the item before, 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 nextIndexHint has the same key as nextKey, in case the indexes of the items have changed.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |