Dockview
    Preparing search index...

    Interface DockviewGroupPanelApi

    interface DockviewGroupPanelApi {
        component: string;
        height: number;
        id: string;
        isActive: boolean;
        isFocused: boolean;
        isVisible: boolean;
        location: DockviewGroupLocation;
        locked: DockviewGroupPanelLocked;
        onDidActiveChange: DockviewEvent<ActiveEvent>;
        onDidActivePanelChange: DockviewEvent<DockviewGroupActivePanelChangeEvent>;
        onDidCollapsedChange: DockviewEvent<DockviewGroupPanelCollapsedChangeEvent>;
        onDidConstraintsChange: DockviewEvent<GridConstraintChangeEvent>;
        onDidDimensionsChange: DockviewEvent<PanelDimensionChangeEvent>;
        onDidFocusChange: DockviewEvent<FocusEvent>;
        onDidLocationChange: DockviewEvent<DockviewGroupPanelLocationChangeEvent>;
        onDidParametersChange: DockviewEvent<Parameters>;
        onDidVisibilityChange: DockviewEvent<VisibilityEvent>;
        onWillFocus: DockviewEvent<WillFocusEvent>;
        width: number;
        close(): void;
        collapse(): void;
        exitMaximized(): void;
        expand(): void;
        getHeaderPosition(): DockviewHeaderPosition;
        getParameters<T extends Parameters = Parameters>(): T;
        getWindow(): Window;
        isCollapsed(): boolean;
        isMaximized(): boolean;
        maximize(): void;
        moveTo(options: DockviewGroupMoveParams): void;
        setActive(): void;
        setConstraints(value: GridConstraintChangeEvent2): void;
        setHeaderPosition(position: DockviewHeaderPosition): void;
        setSize(event: SizeEvent): void;
        setVisible(isVisible: boolean): void;
        updateParameters(parameters: Parameters): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    component: string

    The id of the component renderer

    height: number

    The panel height in pixels

    id: string

    The id of the panel that would have been assigned when the panel was created

    isActive: boolean

    Whether the panel is the actively selected panel

    isFocused: boolean

    Whether the panel holds the current focus

    isVisible: boolean

    Whether the panel is visible

    locked: DockviewGroupPanelLocked

    Whether this group is locked against drop interactions.

    • true: panels cannot be dropped into the group (center / tabs), but the group can still be split from its edges.
    • 'no-drop-target': all drop zones are disabled for this group.
    onDidActiveChange: DockviewEvent<ActiveEvent>

    Fires when the active panel within this group changes. Scoped to the group, in contrast to the component-level DockviewApi.onDidActivePanelChange (which tracks the active panel across the whole dockview). Both carry an DockviewOrigin reporting whether the change came from a user gesture or an API call.

    Fired when an edge group's collapsed state changes. Never fires for non-edge groups.

    onDidConstraintsChange: DockviewEvent<GridConstraintChangeEvent>
    onDidFocusChange: DockviewEvent<FocusEvent>
    onDidParametersChange: DockviewEvent<Parameters>
    onDidVisibilityChange: DockviewEvent<VisibilityEvent>
    onWillFocus: DockviewEvent<WillFocusEvent>
    width: number

    The panel width in pixels

    Methods

    • Returns true if this edge group is currently collapsed. Always returns false for non-edge groups.

      Returns boolean