turbodombuilder - v0.9.5
    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 initializing MVC.

    The element's data type, if initializing MVC.

    The element's model type, if initializing MVC.

    The element's emitter type, if initializing MVC.

    Object containing properties for configuring a TurboElement, or any Element. A tag (and possibly a namespace) can be provided for TurboProxiedElements for element creation. TurboElements will ignore these properties if set. Any HTML attribute can be passed as key to be processed by the class/function. A few of these attributes were explicitly defined here for autocompletion in JavaScript. Use TypeScript for optimal autocompletion (with the target generic type, if needed). The type also has the following described custom properties: