remove method

IListDataAdapter.change method

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

Applies to: Metro style apps only

Removes the specified item from the IListDataAdapter object's data source.

Syntax


iListDataAdapter.change(key, data, indexHint).done( /* Your success and error handlers */ );

Parameters

key

Type: String

The key of the item to remove

data

Type: Object

The new data for the item.

indexHint

Type: Number

The index of the item

Return value

Type: Object

A Promise that contains the IItem that was removed or an EditError if an error was encountered.

Remarks

Implementing this method

When implementing this method, you should verify that the item at indexHint has the same key as key, in case the index of the item changed.

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