Share via


IListDataAdapter.change method

Overwrites the data of the specified item.

Syntax

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

Parameters

  • key
    Type: String

    The key of the item to overwrite.

  • newData
    Type: Object

    The new data for the item.

  • indexHint
    Type: Number

    The index of the item, if known.

Return value

Type: Promise**

A Promise that returns null or undefined when the operation completes.

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataAdapter