Interface Validator

Hierarchy

  • Validator
  • Implementations of this function examine the current numericValue and determine if it is valid or not and if the validity should be reported to the user.

    Set customValidity to an empty string to make the input valid.

    Parameters

    • number: string

      Usually the current numericValue of the input.

    • type: ValidateContextType

      Information about the conditions under which the validation is occurring.

    Returns void | ValidateResult

    If an object is returned the value of customValidity will be set as the element's custom validity, if null or undefined the validity message will not be updated.

Generated using TypeDoc