-
Notifications
You must be signed in to change notification settings - Fork 2
IFormCollection
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.
-
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.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet