-
Couldn't load subscription status.
- Fork 4
FormCollection
API / FormCollection<TForm, TValidationError> class
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 ReadOnlyFormCollection<TForm, TValidationError>.
Implements IFormCollection<TForm, TValidationError>.
class FormCollection<TForm extends Form<TValidationError>, TValidationError = string>
extends ReadOnlyFormCollection<TForm, TValidationError>
implements IFormCollection<TForm, TValidationError>Source reference: src/forms/FormCollection.ts:14.
-
TForm - The concrete type of the form.
Type constraints: Form<TValidationError>.
-
TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).
Default value:
string.
-
constructor - Initializes a new instance of the
FormCollection<TForm, TValidationError>class.
-
overridelength - 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 is reordered. -
inheritederror - Gets or sets the error message when the object is invalid. -
inheritedisInvalid - A flag indicating whether the object is invalid. -
inheritedisValid - A flag indicating whether the object is valid. -
inheritedpropertiesChanged - 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.
-
overridecopyWithin - Copies items inside the collection overwriting existing ones. -
overridefill - Fills the collection with the provideditem. -
overrideget - Gets the item at the provided index. -
overridepop - Removes the last element from the collection and returns it. If the collection is empty,undefinedis returned. -
overridepush - Appends new elements to the end of the collection, and returns the new length of the collection. -
overridereverse - Reverses the items in the collections and returns the observable collection.. -
overrideset - Sets the provided item at the provided index. -
overrideshift - Removes the first element from the collection and returns it. If the collection is empty,undefinedis returned. -
overridesort - Reverses the items in the collections and returns the observable collection. -
overridesplice - Removes and/or adds elements to the collection and returns the deleted elements. -
overrideunshift - Inserts new elements at the start of the collection, and returns the new length of the collection.
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