EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

IListDataSource.insertAfter method

Applies to Windows and Windows Phone

Inserts a new item after another item.

Syntax


iListDataSource.insertAfter(key, data, previousKey).done( /* Your success and error handlers */ );

Parameters

key [optional]

Type: String

The key that can be used to retrieve the new item, if known.

data

Type: Object

The data for the item to add.

previousKey

Type: String

The key for an item in the data source. The new item will be added after this item.

Return value

Type: Promise

A Promise that contains the IItem that was added 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

 

 

Anzeigen:
© 2014 Microsoft