Skip to content

INotifyCollectionChanged

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / INotifyCollectionChanged<TItem> interface

Notifies when a collection has items added or removed to it. Item reordering is handled through the INotifyCollectionReordered<TItem> interface.

Any collection change can be reduced to Array.splice, event handlers receive all the relevant information to easily reproduce the operation on mapped collections.

interface INotifyCollectionChanged<TItem>

Source reference: src/collections/observableCollections/INotifyCollectionChanged.ts:11.

Generic Parameters

  • TItem - The type of items the collection contains.

Properties

  • readonly collectionChanged - An event that is raised when the collection changed by adding or removing items.

Implementations

Clone this wiki locally