IListDataSource.itemFromIndex method
Retrieves the item at the specified index.
Syntax
iListDataSource.itemFromIndex(index).done( /* Your success and error handlers */ );
Parameters
index
Type: NumberA value that is greater than or equal to zero that is the index of the item to retrieve.
Return value
Type: Promise**
A Promise that provides an IItem that contains the requested item or a FetchError if an error was encountered. If the item wasn't found, the promise completes with a value of null.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |