IFormCollection - Andrei15193/react-model-view-viewmodel GitHub Wiki
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.
-
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.
- length - Gets or sets the number of items in the collection.
-
inheritedreadonlycollectionChanged - An event that is raised when the collection changed by adding or removing items. -
inheritedreadonlycollectionReordered - An event that is raised when the collection changed. -
inheritederror - Gets or sets the error message when the object is invalid. -
inheritedreadonlyisInvalid - A flag indicating whether the object is invalid. -
inheritedreadonlyisValid - A flag indicating whether the object is valid. -
inheritedreadonlypropertiesChanged - An event that is raised when one or more properties may have changed. -
inheritedreadonlyvalidation - Gets the validation configuration for the form. Fields have their own individual validation config as well.