Skip to content

IFormCollection

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IFormCollection<TForm, TValidationError> interface

Represents a configurable observable collection of forms. Callbacks can be configured for setting up individual form sections for cases where validation and other aspects are based on the state of an entity or the form itself.

Extends IObservableCollection<TForm>, IReadOnlyFormCollection<TForm, TValidationError>.

interface IFormCollection<TForm extends Form<TValidationError>, TValidationError = string>
    extends IObservableCollection<TForm>, IReadOnlyFormCollection<TForm, TValidationError>

Source reference: src/forms/IFormCollection.ts:12.

Generic Parameters

  • TForm - The concrete type of the form section.

    Type constraints: Form<TValidationError>.

  • TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).

    Default value: string.

Properties

  • length - Gets or sets the number of items in the collection.
  • inherited readonly collectionChanged - An event that is raised when the collection changed by adding or removing items.
  • inherited readonly collectionReordered - An event that is raised when the collection changed.
  • inherited error - Gets or sets the error message when the object is invalid.
  • inherited readonly isInvalid - A flag indicating whether the object is invalid.
  • inherited readonly isValid - A flag indicating whether the object is valid.
  • inherited readonly propertiesChanged - An event that is raised when one or more properties may have changed.
  • inherited readonly validation - Gets the validation configuration for the form. Fields have their own individual validation config as well.

Implementations

Clone this wiki locally