Skip to content

INotifyCollectionReordered

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / INotifyCollectionReordered<TItem> interface

Notifies when a collection has its items reordered. Adding and removing items is handled through the INotifyCollectionChanged<TItem> interface. A core interface for observable collections. Components can react to this and display the new value as a consequence.

Any collection change can be reduced to Array.splice, event handlers can splice entire mapped collections to get all items in the same order.

Additionally, event handlers receive all the necessary information about how each item has moved inside the collection making it easy to add animations when it happens.

interface INotifyCollectionReordered<TItem>

Source reference: src/collections/observableCollections/INotifyCollectionReordered.ts:15.

Generic Parameters

  • TItem - The type of items the collection contains.

Properties

Implementations

Clone this wiki locally