formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Type Alias TElementSpecifier<TElement>

    TElementSpecifier:
        | undefined
        | null
        | TElement
        | TElement[]
        | NodeList & NodeListOf<TElement>
        | HTMLCollection & HTMLCollectionOf<TElement>
        | string
        | JQuery<TElement>

    Union of types that can be interpreted as referencing to one or multiple (DOM) elements.

    • undefined and null are represent a missing element.
    • TElement is the element itself.
    • TElement[] is an array of elements.
    • NodeListOf<TElement> is a list of elements, returned by querySelectorAll.
    • HTMLCollectionOf<TElement> is a collection of elements, returned by getElementsByClassName.
    • string is a CSS selector for the element(s).
    • JQuery is a JQuery wrapper with the element(s).

    Type Parameters

    • TElement extends Element

      Type of the DOM element.

    A union type with various different types corresponding to an element.