@arcmantle/adapter-element
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    childPart: undefined | RootPart = undefined
    constructor: typeof AdapterElement

    The initial value of Object.prototype.constructor is the standard built-in Object constructor.

    hasConnected: boolean = false
    hasUpdated: boolean = false
    isUpdatePending: boolean = false
    renderOptions: RenderOptions = ...
    "[metadata]": AdapterMetadata
    adapterBase: typeof AdapterBase = AdapterBase
    modules: readonly PluginModule[] = []
    styles: CSSStyle
    tagName: string

    Accessors

    • get addEventListener(): {
          <K extends keyof HTMLElementEventMap>(
              type: K,
              listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
              options?: boolean | AddEventListenerOptions,
          ): void;
          (
              type: string,
              listener: EventListenerOrEventListenerObject,
              options?: boolean | AddEventListenerOptions,
          ): void;
      }

      Returns {
          <K extends keyof HTMLElementEventMap>(
              type: K,
              listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
              options?: boolean | AddEventListenerOptions,
          ): void;
          (
              type: string,
              listener: EventListenerOrEventListenerObject,
              options?: boolean | AddEventListenerOptions,
          ): void;
      }

    • get dispatchEvent(): (event: Event) => boolean

      Returns (event: Event) => boolean

        • (event: Event): boolean
        • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

          MDN Reference

          Parameters

          • event: Event

          Returns boolean

    • get querySelector(): {
          <K extends keyof HTMLElementTagNameMap>(
              selectors: K,
          ): null | HTMLElementTagNameMap[K];
          <K extends keyof SVGElementTagNameMap>(
              selectors: K,
          ): null | SVGElementTagNameMap[K];
          <K extends keyof MathMLElementTagNameMap>(
              selectors: K,
          ): null | MathMLElementTagNameMap[K];
          <K extends keyof HTMLElementDeprecatedTagNameMap>(
              selectors: K,
          ): null | HTMLElementDeprecatedTagNameMap[K];
          <E extends Element = Element>(selectors: string): null | E;
      }

      Returns {
          <K extends keyof HTMLElementTagNameMap>(
              selectors: K,
          ): null | HTMLElementTagNameMap[K];
          <K extends keyof SVGElementTagNameMap>(
              selectors: K,
          ): null | SVGElementTagNameMap[K];
          <K extends keyof MathMLElementTagNameMap>(
              selectors: K,
          ): null | MathMLElementTagNameMap[K];
          <K extends keyof HTMLElementDeprecatedTagNameMap>(
              selectors: K,
          ): null | HTMLElementDeprecatedTagNameMap[K];
          <E extends Element = Element>(selectors: string): null | E;
      }

        • <K extends keyof HTMLElementTagNameMap>(
              selectors: K,
          ): null | HTMLElementTagNameMap[K]
        • Returns the first element that is a descendant of node that matches selectors.

          MDN Reference

          Type Parameters

          • K extends keyof HTMLElementTagNameMap

          Parameters

          • selectors: K

          Returns null | HTMLElementTagNameMap[K]

        • <K extends keyof SVGElementTagNameMap>(
              selectors: K,
          ): null | SVGElementTagNameMap[K]
        • Type Parameters

          • K extends keyof SVGElementTagNameMap

          Parameters

          • selectors: K

          Returns null | SVGElementTagNameMap[K]

        • <K extends keyof MathMLElementTagNameMap>(
              selectors: K,
          ): null | MathMLElementTagNameMap[K]
        • Type Parameters

          • K extends keyof MathMLElementTagNameMap

          Parameters

          • selectors: K

          Returns null | MathMLElementTagNameMap[K]

        • <K extends keyof HTMLElementDeprecatedTagNameMap>(
              selectors: K,
          ): null | HTMLElementDeprecatedTagNameMap[K]
        • Type Parameters

          • K extends keyof HTMLElementDeprecatedTagNameMap

          Parameters

          • selectors: K

          Returns null | HTMLElementDeprecatedTagNameMap[K]

        • <E extends Element = Element>(selectors: string): null | E
        • Type Parameters

          • E extends Element = Element

          Parameters

          • selectors: string

          Returns null | E

    • get removeEventListener(): {
          <K extends keyof HTMLElementEventMap>(
              type: K,
              listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
              options?: boolean | EventListenerOptions,
          ): void;
          (
              type: string,
              listener: EventListenerOrEventListenerObject,
              options?: boolean | EventListenerOptions,
          ): void;
      }

      Returns {
          <K extends keyof HTMLElementEventMap>(
              type: K,
              listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
              options?: boolean | EventListenerOptions,
          ): void;
          (
              type: string,
              listener: EventListenerOrEventListenerObject,
              options?: boolean | EventListenerOptions,
          ): void;
      }

    Methods

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | EventListenerOptions

      Returns void