Options
All
  • Public
  • Public/Protected
  • All
Menu

When an element is invalid due to a validation error, the user needs to be informed. A highlight handler is responsible for changing the visual state of an element so that the user notices the invalid element. A highlight handler is usually registered for a particular type of element or widget.

Hierarchy

  • Highlighter

Index

Methods

  • highlight(element: JQuery<HTMLElement>): void
  • When an element is invalid due to a validation error, the user needs to be informed. This method must highlight the given element in a way that makes the user notice that the element is invalid.

    Parameters

    • element: JQuery<HTMLElement>

      An element to highlight.

    Returns void

  • unhighlight(element: JQuery<HTMLElement>): void
  • When an element is invalid due to a validation error, the user needs to be informed. This method must remove the highlighting of the given element that was added by highlight.

    Parameters

    Returns void

Generated using TypeDoc