Share via


IListDataNotificationHandler.inserted method

Raises a notification that an item has been added to the IListDataAdapter object's data source.

Syntax

iListDataNotificationHandler.inserted(newItem, previousKey, nextKey, index);

Parameters

  • newItem
    Type: IItem**

    The new item added to the IListDataAdapter object's data source.

  • previousKey
    Type: string

    The key of the item that now precedes the new item, or null if the item was inserted at the start of the list. If nextKey is provided, this parameter may be null.

  • nextKey
    Type: string

    The key of the item that now follows the new item, or null if the item was inserted at the end of the list. If previousKey is provided, this parameter may be null.

  • index [optional]
    Type: Number

    The index of the new item.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataNotificationHandler