Function selector

  • Given the specified selector, returns a function which returns the first descendant of "this" element that matches the specified selector.

    The generic refers to the type of the returned descendant element.

    Type Parameters

    Parameters

    • selector: string

      A CSS selector string.

    Returns ((this) => DescElement)

      • (this): DescElement
      • Parameters

        Returns DescElement