-
Notifications
You must be signed in to change notification settings - Fork 2
IConfigurableFormCollection
API / IConfigurableFormCollection<TSection, TValidationError> interface
Represents collection of form sections that can be configured. This is useful for cases like having a list of editable items and neeeding to add validation for each based on the state of an entity or the form itself.
interface IConfigurableFormCollection<TSection extends Form<TValidationError>, TValidationError = string>
Source reference: src/forms/IConfigurableFormCollection.ts:18
.
-
TSection - 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
.
- clearItemSetups - Clears all setup callbacks and resets all existing form sections.
-
withItemSetup - Configures the provided
setupCallback
and applies it on all existing form sections within the collection -
withoutItemSetup - Removes the provided
setupCallback
and no longer applies it to form sections that are added, all existing
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