IListDataSource.change method

Applies to Windows and Windows Phone

Overwrites the data of the specified item.

Syntax


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

Parameters

key

Type: String

The key for the item to replace.

newData

Type: Object

The new data for the item.

Return value

Type: Promise

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

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

IListDataSource

 

 

Show:
© 2015 Microsoft