ICollectionReorderedValidationTriggerConfig.shouldTriggerValidation - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ICollectionReorderedValidationTriggerConfig<TItem, TCollection> / shouldTriggerValidation method
Optional, a guard method which controls when a validation should be triggered.
shouldTriggerValidation(
collection: TCollection,
collectionReorder: ICollectionReorder<TItem>
): boolean
Source reference: src/validation/triggers/CollectionReorderedValidationTrigger.ts:20
.
-
collection: TCollection
The collection that changed. -
collectionReorder: ICollectionReorder<TItem>
The collection reorder information.