-
Notifications
You must be signed in to change notification settings - Fork 2
INotifyCollectionChanged
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
.
- TItem - The type of items the collection contains.
-
readonly
collectionChanged - An event that is raised when the collection changed by adding or removing items.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet