turbodombuilder - v0.9.22
    Preparing search index...

    Type Alias TurboProperties<Tag>

    TurboProperties: HTMLElementMutableFields<Tag> & ElementTagDefinition & {
        id?: string;
        classes?: string | string[];
        style?: string;
        stylesheet?: string;
        shadowDOM?: boolean;
        parent?: Element;
        children?: Element | Element[];
        text?: string;
        listeners?: Record<string, (e: Event, el: ValidElement<Tag>) => boolean>;
        onClick?: (e: Event, el: ValidElement<Tag>) => boolean;
        onDrag?: (e: Event, el: ValidElement<Tag>) => boolean;
        out?: string | Node;
        [key: string]: any;
    }

    Type Parameters

    • Tag extends ValidTag = "div"

      The HTML (or other) tag of the element, if passing it as a property. Defaults to "div".

    The element's view type, if any.

    The element's data type, if any.

    The element's model type, if any.

    The element's emitter type, if any.

    Object containing properties for configuring an Element. A tag (and possibly a namespace) can be provided for element creation. Already-created elements will ignore these properties if set. Any HTML attribute can be passed as key to be processed by the class/function. The type has the following described custom properties: