Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Inserts an item before another item.
Syntax
iListDataSource.insertBefore(key, data, nextKey).done( /* Your success and error handlers */ );
Parameters
key [optional]
Type: StringThe key that can be used to retrieve the new item, if known.
data
Type: ObjectThe data for the item to add.
nextKey
Type: StringThe key of an item in the data source. The new item will be inserted before this item.
Return value
Type: Promise**
A Promise that contains the IItem that was added or an EditError if an error was encountered.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |