-
Notifications
You must be signed in to change notification settings - Fork 2
MapChangedValidationTrigger
API / MapChangedValidationTrigger<TKey, TItem, TMap> class
Represents a map changed validation trigger. Whenever the map changes a validation may be triggered.
Extends ValidationTrigger<TMap>.
class MapChangedValidationTrigger<TKey = unknown, TItem = unknown, TMap extends INotifyMapChanged<TKey, TItem> = INotifyMapChanged<TKey, TItem>>
extends ValidationTrigger<TMap>
Source reference: src/validation/triggers/MapChangedValidationTrigger.ts:30
.
-
TKey - The type of keys the map contains.
Default value:
unknown
. -
TItem - The type of items the map contains.
Default value:
unknown
. -
TMap - The map type that may trigger validations.
Type constraints: INotifyMapChanged<TKey, TItem>.
Default value: INotifyMapChanged<TKey, TItem>.
-
constructor - Initializes a new instance of the
MapChangedValidationTrigger<TKey, TItem, TMap>
class.
-
inherited
readonly
trigger - Gets the source object that triggers validation. -
inherited
readonly
validationTriggered - Gets an event that is raised whenever the source object triggers a validation.
-
override
protected
subscribeToTarget - Subscribes to map changes. -
override
protected
unsubscribeFromTarget - Unsubscribes from map changes.
-
ValidationTrigger<TTrigger>
- ViewModelChangedValidationTrigger<TViewModel>
- CollectionChangedValidationTrigger<TItem, TCollection>
- CollectionReorderedValidationTrigger<TItem, TCollection>
- SetChangedValidationTrigger<TItem, TSet>
- MapChangedValidationTrigger<TKey, TItem, TMap>
- CollectionItemValidationTrigger<TItem>
- SetItemValidationTrigger<TItem>
- MapItemValidationTrigger<TKey, TItem>
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