Skip to content

ICollectionChangedValidationTriggerConfig.shouldTriggerValidation

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

Optional, a guard method which controls when a validation should be triggered.

shouldTriggerValidation(
  collection: TCollection,
  collectionChange: ICollectionChange<TItem>
): boolean

Source reference: src/validation/triggers/CollectionChangedValidationTrigger.ts:20.

Parameters

  • collection: TCollection
    The collection that changed.

  • collectionChange: ICollectionChange<TItem>
    The collection change.

Returns: boolean

Clone this wiki locally