INotifyCollectionReordered - Andrei15193/react-model-view-viewmodel GitHub Wiki
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
.
- TItem - The type of items the collection contains.
-
readonly
collectionReordered - An event that is raised when the collection changed.