Xivgear Types Documentation
    Preparing search index...
    type ElOpts<X extends keyof HTMLElementTagNameMap> = {
        attributes?: { [K: string]: string };
        class?: string;
        classes?: string[];
        id?: string;
        props?: Partial<HTMLElementTagNameMap[X]>;
        style?: { [K in WritableCssProp]?: string };
        title?: string;
    }

    Type Parameters

    • X extends keyof HTMLElementTagNameMap
    Index

    Properties

    attributes?: { [K: string]: string }

    If specified, sets any arbitrary attributes of the element.

    class?: string

    If specified, adds a single class to the element.

    classes?: string[]

    If specified, adds multiple classes to the element.

    id?: string

    If specified, sets the id of the element.

    props?: Partial<HTMLElementTagNameMap[X]>

    If specified, sets any other arbitrary properties of the element.

    style?: { [K in WritableCssProp]?: string }

    If specified, CSS styles to apply.

    title?: string

    If specified, sets the title of the element.