Share via


IListDataAdapter.insertAtStart method

Adds the specified key and data to the beginning of the IListDataAdapter object's data source.

Syntax

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

Parameters

  • key
    Type: String

    A key that can be used to retrieve the new data.

  • data
    Type: Object

    The new data to add to the IListDataAdapter object's data source.

Return value

Type: Promise**

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

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataAdapter