ICollectionReorderedValidationTriggerConfig - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ICollectionReorderedValidationTriggerConfig<TItem, TCollection> interface
Represents the collection reordered validation trigger configuration.
interface ICollectionReorderedValidationTriggerConfig<TItem = unknown, TCollection extends INotifyCollectionReordered<TItem> = INotifyCollectionReordered<TItem>>
Source reference: src/validation/triggers/CollectionReorderedValidationTrigger.ts:9
.
-
TItem - The type of item the collection contains.
Default value:
unknown
. -
TCollection - The collection type that may trigger validations.
Type constraints: INotifyCollectionReordered<TItem>.
Default value: INotifyCollectionReordered<TItem>.
-
readonly
collection - Gets the collection that may trigger a validation.
-
optional
shouldTriggerValidation - Optional, a guard method which controls when a validation should be triggered.