-
Notifications
You must be signed in to change notification settings - Fork 2
ValidationTrigger
API / ValidationTrigger<TTrigger> class
Represents a validation trigger. Generally, they wrap an observable object and whenever
it changes the ValidationTrigger.validationTriggered
event is raised.
This is an abstract class.
abstract class ValidationTrigger<TTrigger = unknown>
Source reference: src/validation/triggers/ValidationTrigger.ts:41
.
-
TTrigger - The concrete type that may trigger validations.
Default value:
unknown
.
-
protected
constructor - Initializes a new instance of theValidationTrigger<TTrigger>
class.
-
readonly
trigger - Gets the source object that triggers validation. -
readonly
validationTriggered - Gets an event that is raised whenever the source object triggers a validation.
-
protected
notifyValidationTriggered - Raises theValidationTrigger.validationTriggered
event, notifying that a validation should occur. -
abstract
protected
subscribeToTarget - A plug-in method that handles the actual event subscription to theValidationTrigger.trigger
. -
abstract
protected
unsubscribeFromTarget - A plug-in method that handles the actual event unsubscription to theValidationTrigger.trigger
.
-
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