interface IOptions<T> {
    collapsed?: boolean;
    node?: HTMLElement;
    tag?: keyof HTMLElementTagNameMap;
    widget: T;

Type Parameters


  • IOptions
    • IOptions


collapsed?: boolean

The optional node to use for the widget.

If a node is provided, the widget will assume full ownership and control of the node, as if it had created the node itself.

The default is a new <div>.

tag?: keyof HTMLElementTagNameMap

The optional element tag, used for constructing the widget's node.

If a pre-constructed node is provided via the node arg, this value is ignored.

widget: T