Interface UpdateCustomValidity<ValidationProperties>

Type Parameters

  • ValidationProperties

    Part of the context argument; for example ValidateMin.

Hierarchy

  • UpdateCustomValidity
  • 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.

    Parameters

    • number: string

      The current numericValue of the input.

    • context: ValidationProperties & {
          type: ValidateContextType;
      }

      Information about the current validation status.

    • Optional result: ValidateResultInternal

      The current validation result.

    Returns void | ValidateResult

Generated using TypeDoc