Skip to content

CollectionItemValidationTrigger

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / CollectionItemValidationTrigger<TItem> class

Represents a collection item validation trigger. Instead of triggering a validation only when the collection changes, a validation may be triggered by any of the contained items when they themselves change.

This is useful when within the collection there is a field that needs to be unique, such as a unique name for each item in the collection.

Extends ValidationTrigger<INotifyCollectionChanged<TItem> & Iterable<TItem>>.

class CollectionItemValidationTrigger<TItem>
    extends ValidationTrigger<INotifyCollectionChanged<TItem> | Iterable<TItem>>

Source reference: src/validation/triggers/CollectionItemValidationTrigger.ts:43.

Generic Parameters

  • TItem - The type of items the collection contains.

Constructors

Properties

  • inherited readonly trigger - Gets the source object that triggers validation.
  • inherited readonly validationTriggered - Gets an event that is raised whenever the source object triggers a validation.

Methods

Inheritance Hierarchy

Clone this wiki locally