Plugin extensions invoked by our jQuery-based forms and dialog helpers.

interface JQuery<TElement = HTMLElement> {
    attachRequiredFieldHandler(
        options?: {
            callback?: (this: HTMLElement, event: Event) => void;
            formErrorMessage?: string;
            formSelector?: string;
            indicatorSelector?: string;
            requiredFieldMessage?: string;
            validationErrorSelector?: string;
        },
    ): JQuery<TElement>;
    conditionalSwitcherClick(
        handler: (this: HTMLElement, event: Event) => void,
    ): JQuery<TElement>;
    getEmptyInputs(): JQuery<TElement>;
    highlightLabels(indicatorSelector?: string): JQuery<TElement>;
    lockTab(): JQuery<TElement>;
    modal(
        options?: {
            clickClose?: boolean;
            escapeClose?: boolean;
            showClose?: boolean;
        },
    ): JQuery<TElement>;
    powerTip(
        options?: {
            mouseOnToPopup?: boolean;
            placement?: "s" | "n" | "e" | "w";
            smartPlacement?: boolean;
        },
    ): JQuery<TElement>;
    sisyphus(
        options?: {
            excludeFields?: JQuery;
            onBeforeRestore?: () => void;
            onRestore?: () => void;
        },
    ): Sisyphus;
    toggleSwitcher(): JQuery<TElement>;
    [n: number]: TElement;
}

Type Parameters

  • TElement = HTMLElement

Hierarchy

  • Iterable<TElement>
    • JQuery

Indexable

  • [n: number]: TElement

Methods

  • Parameters

    • Optionaloptions: {
          callback?: (this: HTMLElement, event: Event) => void;
          formErrorMessage?: string;
          formSelector?: string;
          indicatorSelector?: string;
          requiredFieldMessage?: string;
          validationErrorSelector?: string;
      }

    Returns JQuery<TElement>

  • Parameters

    • Optionaloptions: { clickClose?: boolean; escapeClose?: boolean; showClose?: boolean }

    Returns JQuery<TElement>

  • Parameters

    • Optionaloptions: {
          mouseOnToPopup?: boolean;
          placement?: "s" | "n" | "e" | "w";
          smartPlacement?: boolean;
      }

    Returns JQuery<TElement>

  • Parameters

    • Optionaloptions: { excludeFields?: JQuery; onBeforeRestore?: () => void; onRestore?: () => void }

    Returns Sisyphus