@wopjs/dom - v0.1.3
    Preparing search index...

    Variable createElementConst

    createElement: {
        <K extends keyof HTMLElementTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementTagNameMap[K];
        <K extends keyof HTMLElementDeprecatedTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementDeprecatedTagNameMap[K];
        (tagName: string, options?: ElementCreationOptions): HTMLElement;
    } = ...

    Creates an instance of the element for the specified tag.

    Type declaration

      • <K extends keyof HTMLElementTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementTagNameMap[K]
      • Creates an instance of the element for the specified tag.

        Type Parameters

        • K extends keyof HTMLElementTagNameMap

        Parameters

        • tagName: K

          The name of an element.

          MDN Reference

        • Optionaloptions: ElementCreationOptions

        Returns HTMLElementTagNameMap[K]

      • <K extends keyof HTMLElementDeprecatedTagNameMap>(
            tagName: K,
            options?: ElementCreationOptions,
        ): HTMLElementDeprecatedTagNameMap[K]
      • Type Parameters

        • K extends keyof HTMLElementDeprecatedTagNameMap

        Parameters

        • tagName: K
        • Optionaloptions: ElementCreationOptions

        Returns HTMLElementDeprecatedTagNameMap[K]

      • (tagName: string, options?: ElementCreationOptions): HTMLElement
      • Parameters

        • tagName: string
        • Optionaloptions: ElementCreationOptions

        Returns HTMLElement