IListDataAdapter.moveToStart method
Moves the specified item to the beginning of the IListDataAdapter object's data source.
Syntax
iListDataAdapter.moveToStart(key, indexHint).done( /* Your success and error handlers */ );
Parameters
key
Type: StringThe key for the item to move.
indexHint
Type: NumberThe index of the item to move, 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, in case the index of the item changed.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |