Implemented by a client that wants to alter a validation result before it is applied to the input.
The returned value will be used to set the validation state of the input. This is invoked with the default validation which indicates the type of validation error that has occurred.
To immediately clear an invalid state return an object where customValidity
is an empty string and report
is true.
To prevent an error popup from being displayed by the browser when setting
the input invalid, set the return value's report
to false.
The current numericValue
of the input.
Information about the current validation status.
Optional
result: ValidateResultInternalThe current validation result.
Generated using TypeDoc
Part of the
context
argument; for exampleValidateMin
.