Spektrum API Reference - v1.2.0
    Preparing search index...

    A panel registered with the dock. The companion gets back this handle and renders its UI into container.

    interface DockPanelHandle {
        container: Element;
        id: string;
        label: string;
        activate(): void;
        close(): void;
        detach(): void;
    }
    Index

    Properties

    container: Element

    The Element to render into. Already styled to fill the dock's content area; companions can appendChild and inline-style as they would any container.

    id: string
    label: string

    Methods

    • Simulate the user clicking × on the tab — fires onClose (so the companion can tear down its listeners), then detaches.

      Returns void

    • Remove the tab + container without invoking onClose. Use this from the companion's own unmount() to avoid recursion.

      Returns void