Skip to content

IViewModelChangedValidationTriggerConfig.shouldTriggerValidation

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IViewModelChangedValidationTriggerConfig<TViewModel> / shouldTriggerValidation method

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

shouldTriggerValidation(
  viewModel: TViewModel,
  changedProperties: readonly (keyof TViewModel)[]
): boolean

Source reference: src/validation/triggers/ViewModelChangedValidationTrigger.ts:19.

Parameters

  • viewModel: TViewModel
    The view model that has changed.

  • changedProperties: readonly (keyof TViewModel)[]
    The properties that have changed on the view model.

Returns: boolean

Clone this wiki locally