Dockview
    Preparing search index...

    Class DockviewApi

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get id(): string

      The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.

      Returns string

    • get messages(): DockviewMessages

      The resolved accessibility message catalog (the app's messages overrides merged over the English defaults). Used by parts that surface localisable AT strings, e.g. the default tab's close-button label.

      Returns DockviewMessages

    • get popoutRestorationPromise(): Promise<void>

      Resolves once any in-flight popout-window restoration completes. Popout windows re-open asynchronously, so after an undo / redo (or fromJSON) that re-opens a popout, await this to know the window is ready. Already-resolved when nothing is restoring.

      Returns Promise<void>

    • get smartGuidesEnabled(): boolean

      Whether Smart Guides snapping is active (the smartGuides option is present + enabled and the module is registered). Reactive via setSmartGuidesEnabled.

      Returns boolean

    Methods

    • Activate the next panel or group, moving focus programmatically. Pass { includePanel: true } to step through the panels of the active group before advancing to the next group.

      Parameters

      Returns void

    • Activate the previous panel or group, moving focus programmatically. Pass { includePanel: true } to step through the panels of the active group before advancing to the previous group.

      Parameters

      Returns void

    • Parameters

      • options: { groupId: string; index?: number; panelId: string; tabGroupId: string }

      Returns void

    • Drop both undo and redo stacks (e.g. on document switch).

      Returns void

    • Parameters

      • options: {
            color?: string;
            componentParams?: Record<string, unknown>;
            groupId: string;
            label?: string;
        }

      Returns ITabGroup

    • Parameters

      • options: { groupId: string; tabGroupId: string }

      Returns void

    • Parameters

      • options: { groupId: string; panelId: string }

      Returns ITabGroup | undefined

    • Force resize the component to an exact width and height. Read about auto-resizing before using.

      Parameters

      • width: number
      • height: number
      • force: boolean = false

      Returns void

    • Parameters

      • options: { groupId: string; index: number; tabGroupId: string }

      Returns void

    • Peek (slide out as an overlay, without reflowing the grid) or close the collapsed edge group at position. No-op when the auto-hide module is absent or the group is not collapsed.

      Parameters

      Returns void

    • Parameters

      • options: { groupId: string; panelId: string }

      Returns void

    • Reveal (create-or-fill) the edge group at position and move the dragged item described by data into it. A newly created edge group tears down to zero footprint when later emptied. Drives the dock-to-edge groups behind the dockToEdgeGroups option; a no-op if edge groups are unavailable.

      Parameters

      • position: EdgeGroupPosition
      • data: { groupId: string; panelId?: string | null }
      • Optionaloptions: { autoHide?: boolean }

      Returns void

    • Toggle Smart Guides snapping at runtime (no-op when the module is absent).

      Parameters

      • enabled: boolean

      Returns void

    • Undo the previous recorded layout mutation. No-op when there is nothing to undo, when layoutHistory.enabled is not set, or when the LayoutHistory module is absent.

      Returns void