-
Notifications
You must be signed in to change notification settings - Fork 2
Validatable
API / Validatable<TValidationError> class
Represents a base implementation for a validatable
Extends ViewModel.
Implements IValidatable<TValidationError>.
class Validatable<TValidationError = string>
extends ViewModel
implements IValidatable<TValidationError>
Source reference: src/validation/Validatable.ts:8
.
-
TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).
Default value:
string
.
-
constructor - Initializes a new instance of the
Validatable<TValidationError>
class.
- error - Gets or sets the error message when the object is invalid.
- isInvalid - A flag indicating whether the object is invalid.
- isValid - A flag indicating whether the object is valid.
-
inherited
propertiesChanged - An event that is raised when one or more properties may have changed.
-
ViewModel
- ReadOnlyObservableCollection<TItem>
- ReadOnlyObservableSet<TItem>
- ReadOnlyObservableMap<TKey, TItem>
- Validatable<TValidationError>
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