Skip to content

ICollectionReorderedValidationTriggerConfig.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,
  collectionReorder: ICollectionReorder<TItem>
): boolean

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

Parameters

  • collection: TCollection
    The collection that changed.

  • collectionReorder: ICollectionReorder<TItem>
    The collection reorder information.

Returns: boolean

Clone this wiki locally