-
Notifications
You must be signed in to change notification settings - Fork 2
CollectionItemValidatorCallback
API / CollectionItemValidatorCallback<TValidatable, TItem> type
Represents a collection bound validator callback.
type CollectionItemValidatorCallback<TValidatable extends IReadOnlyValidatable, TItem> = (validatable: TValidatable, item: TItem, collection: readonly TItem[]) => string | undefined
- TValidatable: the type of validatable objects to validate. Must implement IReadOnlyValidatable.
- TItem: the type of items the collection contains.
- validatable: TValidatable, the object being validated.
- item: TItem, the item from which the validatable has been selected.
-
collection:
readonly
Array<TItem>, the collection to which the item belongs.
Returns an error message (or translation key) providing information as to why the validatable is invalid.
Motivation
Overview
Guides and Tutorials - Getting Started
Releases
API
Events
IEvent
IEventHandler
INotifyPropertiesChanged
INotifyCollectionChanged
IItemAddedEventArgs
IItemRemovedEventArgs
ICollectionChange
ItemRemovedCallback
ICollectionChange
EventDispatcher
Observable Collections
IReadOnlyObservableCollection
IObservableCollection
ReadOnlyObservableCollection
ObservableCollection
ViewModels
ViewModel
isViewModel
Forms
IFormFieldViewModel
IFormFieldViewModelConfig
FormFieldViewModel
FormFieldCollectionViewModel
FormFieldSet
DynamicFormFieldCollectionViewModel
Validation
IReadOnlyValidatable
IValidatable
IValidationConfig
ValidatorCallback
CollectionItemValidatorCallback
ValidatableSelectorCallback
ValidationConfigSelectorCallback
UnsubscribeCallback
registerValidators
registerCollectionValidators
registerCollectionItemValidators
React Hooks
EventHandler
useEvent
ViewModelType
ViewModelFactory
useViewModel
useViewModelMemo
useObservableCollection
useValidators
useCollectionValidators
useCollectionItemValidators