-
Notifications
You must be signed in to change notification settings - Fork 2
IFormFieldConfig
API / IFormFieldConfig<TValue, TValidationError> interface
Represents the configuration of a field, this can be extended for custom fields to easily add more features.
interface IFormFieldConfig<TValue, TValidationError = string>
Source reference: src/forms/FormField.ts:9
.
-
TValue - The value of the field.
-
TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).
Default value:
string
.
-
readonly
initialValue - Provides the initial value of the field. -
readonly
name - Provides the name of the field. -
readonly
optional
validationTriggers - Provides the validation triggers of the field, these can be later reconfigured. -
readonly
optional
validators - Provides the validators of the field, these can be later reconfigured. -
readonly
optional
value - Provides the value of the field.
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