rc-dock
    Preparing search index...

    Interface PanelBase

    Panel layout, containing tab references or full inline definitions.

    interface PanelBase {
        activeId?: string;
        floatAnchor?: { bottom?: number; right?: number };
        group?: string;
        h?: number;
        id?: string;
        panelLock?: PanelLock;
        size?: number;
        tabs: TabBase[];
        w?: number;
        x?: number;
        y?: number;
        z?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    activeId?: string

    Selected tab id; defaults to the first tab.

    floatAnchor?: { bottom?: number; right?: number }

    Float mode only: gaps to preserve when the layout resizes. Dragging within 0–32px of the right or bottom edge sets that edge's anchor.

    Type declaration

    • Optionalbottom?: number

      Gap from the layout's bottom edge, in pixels.

    • Optionalright?: number

      Gap from the layout's right edge, in pixels.

    group?: string

    Group name; defaults to the first tab's group.

    h?: number

    Floating or window panel height in pixels.

    id?: string

    Unique panel id; generated when omitted.

    panelLock?: PanelLock

    Keep an empty panel and prevent dragging the whole panel into the floating layer. Also provides panel-specific sizing and header overrides.

    size?: number

    Relative width in a horizontal parent or height in a vertical parent.

    tabs: TabBase[]

    Ordered tabs in this panel.

    w?: number

    Floating or window panel width in pixels.

    x?: number

    Floating or window panel's left offset from the layout, in pixels.

    y?: number

    Floating or window panel's top offset from the layout, in pixels.

    z?: number

    Floating panel's stacking order.