次の方法で共有


IListBinding.fromIndex method

Retrieves the item from the IListDataSource that has the specified index and makes it the current item.

Syntax

iListBinding.fromIndex(index).done( /* Your success and error handlers */ );

Parameters

  • index
    Type: Number

    A value greater than or equal to 0 that is the index of the item to retrieve.

Return value

Type: IItemPromise**

An IItemPromise that contains the requested IItem. If the item wasn't found, the promise completes with a value of null.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListBinding