Dotloom TypeScript API
    Preparing search index...

    Interface PanelContribution

    UI contribution rendered by a host (the React editor mounts them).

    interface PanelContribution {
        forTypes?: string[];
        id: string;
        title: string;
        mount(
            el: HTMLElement,
            api: PluginApi & { selection: () => number[] },
        ): () => void;
    }
    Index
    forTypes?: string[]

    Only shown when the selection contains entities of these types.

    id: string
    title: string
    • Mount into a DOM element; returns an unmount function.

      Parameters

      • el: HTMLElement
      • api: PluginApi & { selection: () => number[] }

      Returns () => void