Dockview
    Preparing search index...

    Class DockviewGroupPanelModel

    Hierarchy (View Summary)

    Implements

    • IDockviewGroupPanelModel
    Index

    Constructors

    Properties

    id: string
    onDidActivePanelChange: DockviewEvent<DockviewGroupActivePanelChangeEvent> = ...
    onDidAddPanelToTabGroup: DockviewEvent<{ panelId: string; tabGroup: ITabGroup }> = ...
    onDidChange: DockviewEvent<IViewSize | undefined> = ...
    onDidCreateTabGroup: DockviewEvent<{ tabGroup: ITabGroup }> = ...
    onDidDestroyTabGroup: DockviewEvent<{ tabGroup: ITabGroup }> = ...
    onDidPanelParametersChange: DockviewEvent<Parameters> = ...
    onDidPanelTitleChange: DockviewEvent<TitleEvent> = ...
    onDidRemovePanel: DockviewEvent<DockviewGroupChangeEvent> = ...
    onDidRemovePanelFromTabGroup: DockviewEvent<
        { panelId: string; tabGroup: ITabGroup },
    > = ...
    onDidTabGroupChange: DockviewEvent<{ tabGroup: ITabGroup }> = ...
    onDidTabGroupCollapsedChange: DockviewEvent<{ tabGroup: ITabGroup }> = ...
    onGroupDragStart: DockviewEvent<GroupDragEvent> = ...
    onMove: DockviewEvent<GroupMoveEvent> = ...
    onTabDragStart: DockviewEvent<TabDragEvent> = ...
    onUnhandledDragOver: DockviewEvent<DockviewDndOverlayEvent> = ...

    Accessors

    • get isDisposed(): boolean

      Returns boolean

    • get tabsListElement(): HTMLElement

      The scrollable tab list element (.dv-tabs-container), exposed for the multi-row wrap controller to measure rows / toggle the wrap class.

      Returns HTMLElement

    Methods

    • Parameters

      • tabGroupId: string
      • panelId: string
      • Optionalindex: number

      Returns void

    • Parameters

      • slot: "left" | "right" | "prefix"
      • element: HTMLElement | undefined

      Returns void

    • Whether a content drop at position is allowed: the locked rules, the shift-to-not-drop gesture, the same-component shortcut, then the canDisplayOverlay veto. The single source of truth for the content drop target (content.ts) and the compass cell gating (canDropOnGroup).

      Parameters

      • event: DragEvent | PointerEvent
      • position: Position

      Returns boolean

    • The panel whose tab owns element (the tab itself or a descendant of it), or undefined when the target isn't a tab. The robust inverse of a tab→panel lookup, with no positional/DOM-order assumptions.

      Parameters

      • element: Element

      Returns IDockviewPanel | undefined

    • Move a panel from one tab group to another.

      Parameters

      • sourcePanelId: string
      • targetTabGroupId: string
      • OptionaltargetIndex: number

      Returns void

    • Move a panel to a new index within its tab group. Updates both the group's panelIds order and the flat _panels array.

      Parameters

      • tabGroupId: string
      • panelId: string
      • newIndex: number

      Returns void

    • Move an entire tab group to a new position in the tab bar. The group's internal panel order is preserved.

      Parameters

      • tabGroupId: string
      • targetIndex: number

      Returns void

    • Parameters

      • panel: IDockviewPanel
      • options: { index?: number; skipSetActive?: boolean; skipSetGroupActive?: boolean } = {}

      Returns void

    • Re-run the group's layout with its current dimensions. Used to propagate a header-size change (e.g. a header that grew/shrank without the group box changing) down to the content + active panel.

      Returns void

    • Parameters

      • isGroupActive: boolean
      • force: boolean = false

      Returns void