Options
All
  • Public
  • Public/Protected
  • All
Menu

A validator for checking whether the value of an element confirms to certain restrictions.

Type Parameters

  • T = unknown

Hierarchy

  • Validator

Index

Methods

Methods

  • validate(element: JQuery<HTMLElement>, value?: T): void
  • Validates the given element. If it is not valid, the error message should be thrown.

    throws

    The error message as the string when the element with its current value is not valid.

    Parameters

    • element: JQuery<HTMLElement>

      Element to validate

    • Optional value: T

      Current value of the element

    Returns void

Generated using TypeDoc