IListDataAdapter.insertAfter method
Inserts the specified data after the specified item.
iListDataAdapter.insertAfter(key, data, previousKey, previousIndexHint).done( /* Your success and error handlers */ );
key
Type: StringA key that can be used to retrieve the new data.
data
Type: ObjectThe new data to add to the IListDataAdapter object's data source.
previousKey
Type: StringThe key of an item in the IListDataAdapter object's data source. The new data will be inserted after this item.
previousIndexHint
Type: NumberThe index of the item to insert the new data after, if known.
Type: Promise**
A Promise that contains the IItem that was added or an EditError if an error was encountered.
When implementing this method, you should verify that the item at previousIndexHint has the same key as previousKey, in case the index of the item changed.
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |