React Validator - adapter

An object that specifies what and when to validate, and how to apply the validation result.

Type:

Object

This property should be specified when you cannot associate the Validator UI component with an editor, for instance, when you use custom editors or a validated value is a sequence of several DevExtreme editor values. Refer to the Validate a Custom Value topic for more details.

See Also

applyValidationResults

A function that the Validator UI component calls after validating a specified value.

Type:

Function

This function should apply the validation result that the validator passes as a parameter. The validation result is an object. You can see its structure in the description of the dxValidator.validated event argument.

bypass

A function that returns a Boolean value specifying whether or not to bypass validation.

Type:

Function

If the function returns true, validation is bypassed, otherwise validation is performed.

focus

A function that sets focus to a validated editor when the corresponding ValidationSummary item is focused.

Type:

Function

getValue

A function that returns the value to be validated.

Type:

Function

reset

A function that resets the validated values.

Type:

Function

The function resets the values so that end users can then specify other values. This function is called by the reset method of the Validator UI component.

validationRequestsCallbacks

Callbacks to be executed on the value validation.