pivotick - v2.0.1
    Preparing search index...

    Interface DockTabHandle

    What a live dock tab gets to drive itself with — passed to its own render, toolbar and activation hooks. It lets a tab bring itself to the front or unregister without capturing the graph, the dock, or the disposer addDockTab returned.

    interface DockTabHandle {
        active: boolean;
        id: string;
        activate(): void;
        refresh(): void;
        remove(): void;
        setLabel(label: string): void;
    }
    Index

    Methods

    • Bring this tab to the front, unfolding the dock if it is folded.

      Returns void

    • Rebuild this tab's body: render is called again and what it returns replaces what is there.

      This is how a pane with its own internal views switches between them — the data table does exactly this for Nodes / Edges. Doing it by hand is not an option: the dock keeps the element render gave it, so an occupant that swapped its own DOM would leave the dock holding a stale reference to re-attach later.

      Returns void

    • Rename the tab in the strip. Nothing else moves — the body, its scroll position and whether the tab is on show all survive, which re-registering the tab to change a word would not. This is how a pane carries a live count.

      Parameters

      • label: string

      Returns void

    Properties

    active: boolean

    Whether this is the tab currently on show.

    id: string

    The tab's id — the declared one, or the auto-generated one.