@untemps/utils - v3.1.0
    Preparing search index...

    Interface CreateElementConfig

    Configuration object for createElement.

    interface CreateElementConfig {
        attributes?: Record<string, string> | null;
        boundingClientRect?: BoundingClientRectInit | null;
        content?: HTMLElement | null;
        parent?: HTMLElement | null;
        parentSelector?: string | null;
        tag?: string;
        textContent?: string | null;
    }
    Index

    Properties

    attributes?: Record<string, string> | null

    The attributes to pass to the new DOM element.

    boundingClientRect?: BoundingClientRectInit | null

    The values returned by getBoundingClientRect. Useful in jsdom environment.

    content?: HTMLElement | null

    A DOM element to append as child. Has precedence over textContent.

    parent?: HTMLElement | null

    A DOM element to which append the new DOM element. Has precedence over parentSelector.

    parentSelector?: string | null

    A selector of a DOM element to which append the new DOM element.

    tag?: string

    The tag name of the new DOM element to create. All valid HTML tags are accepted.

    textContent?: string | null

    A text to append as child of the new DOM element.