Skip to content

ValidationConfigSelectorCallback

Andrei Fangli edited this page Jun 4, 2021 · 1 revision
API / ValidationConfigSelectorCallback<TItem, TValidatable> type

Represents a validation config selector callback.

type ValidationConfigSelectorCallback<TItem, TValidatableViewModel extends IValidatable & INotifyPropertiesChanged> = (source: TItem) => IValidationConfig<TValidatableViewModel>

Template Parameters

  • TItem: the type of items from which to select validatable objects.
  • TValidatableViewModel: the type of validatable objects that are selected from an item as part of the validation config. Must implement IValidatable and INotifyPropertiesChanged.

Parameters

  • source: TItem, the item from which a validation config is selected.

Returns: IValidationConfig<TValidatable>

Returns a validation config selected from the provided source.

Clone this wiki locally