itemsFromIndex method

IListDataAdapter.itemsFromEnd method

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Retrieves the item at the specified index and also retrieves the specified number of items before and after the selected item.

Syntax


iListDataAdapter.itemsFromEnd(index, countBefore, countAfter).done( /* Your success and error handlers */ );

Parameters

index

Type: Number

The index of the item to retrieve.

countBefore

Type: Number

The number of items to retrieve from before the selected item.

countAfter

Type: Number

The number of items to retrieve from after the selected item.

Return value

Type: Object

A Promise that provides an IFetchResult that contains the selected items or a FetchError if an error was encountered.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.UI

See also

IListDataAdapter

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft