Share via


IListBinding.last method

Retrieves the last item in the IListDataSource and makes it the current item.

Syntax

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

Parameters

This method has no parameters.

Return value

Type: IItemPromise**

An IItemPromise that contains the requested IItem. f the list is empty, the promise completes with a value of null.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListBinding