Interface ValidateContext<ValidationProperties>

Provides the updateCustomValidity function so clients can modify validation if desired before it is applied to an input coupled with ValidationProperties (like "min", "max", etc.).

Type Parameters

  • ValidationProperties

    The type that will be passed as context to updateCustomValidity.

Hierarchy

  • ValidateContext

Properties

locales?: string | string[]

Locale information that may be necessary to do proper validation.

title?: string

If a title is provided it will be set as the value of customValidity as long as the value is NOT an empty string.

updateCustomValidity?: UpdateCustomValidity<ValidationProperties>

Implemented by a client if it wants the opportunity to change the custom validity.

Generated using TypeDoc