Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IListChangedArgs<T>

The changed args object which is emitted by an observable list.

Type parameters

  • T

Hierarchy

  • IListChangedArgs

Index

Properties

newIndex

newIndex: number

The new index associated with the change.

The semantics of this value depend upon the change type:

  • Add: The index of the added item.
  • Move: The new index of the item.
  • Remove: Always -1.
  • Replace: The index of the replacement.
  • Set: The index of the set item.

newValue

newValue: T | T[]

The new value associated with the change.

The semantics of this value depend upon the change type:

  • Add: The item which was added.
  • Move: The item which was moved.
  • Remove: Always undefined.
  • Replace: The items[] which were added.
  • Set: The new item at the index.

oldIndex

oldIndex: number

The old index associated with the change.

The semantics of this value depend upon the change type:

  • Add: Always -1.
  • Move: The old index of the item.
  • Remove: The index of the removed item.
  • Replace: The index of the replacement.
  • Set: The index of the set item.

oldValue

oldValue: T | T[]

The old value associated with the change.

The semantics of this value depend upon the change type:

  • Add: Always undefined.
  • Move: The item which was moved.
  • Remove: The item which was removed.
  • Replace: The items[] which were removed.
  • Set: The old item at the index.

type

The type of change undergone by the list.

Generated using TypeDoc