Implementing the itemsFromIndex() Method

The itemsFromIndex() method returns a set of items from the data source. Three arguments are passed to this method:

Image requestIndex—The index of the first item to retrieve from the data source

Image countBefore—The number of items before the requested index to retrieve from the data source

Image countAfter—The number of items after the requested index to retrieve from the data source

The countBefore and countAfter parameters ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.