You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edge groups are `DockviewGroupPanel` instances pinned to one of the four edges of the layout (`'left'`, `'right'`, `'top'`, `'bottom'`). They support tabs, drag-and-drop, overflow, and the full group panel API — and their state is included in `toJSON` / `fromJSON`.
Edge groups **cannot** be maximized or converted into floating/popout windows. They are structural elements of the layout.
12
16
:::
13
17
18
+
:::tip
19
+
The `dndEdges` prop controls the drag-and-drop overlay that appears when dragging panels to the far edges of the layout. See [Drag and Drop](/docs/core/dnd/dragAndDrop#drag-and-drop) for configuration details.
20
+
:::
21
+
14
22
## Adding Edge Groups
15
23
16
24
Call `addEdgeGroup` in your `onReady` handler (or any time after initialization):
The `collapsedSize` (the pixel height/width of the header when collapsed) defaults to 35px and can be configured per-group via `EdgeGroupOptions.collapsedSize`, or per-theme via `DockviewTheme.edgeGroupCollapsedSize`.
115
123
124
+
Themes that set a custom `edgeGroupCollapsedSize`:
125
+
126
+
| Theme |`edgeGroupCollapsedSize`|
127
+
| --- | --- |
128
+
|`themeVisualStudio`|`22`|
129
+
|`themeAbyssSpaced`|`44`|
130
+
|`themeGithubLightSpaced`|`44`|
131
+
| All other themes |`35` (default) |
132
+
133
+
:::tip
134
+
When an edge group loses all of its panels it is automatically collapsed. Adding a new panel to it will expand it again.
135
+
:::
136
+
116
137
## Custom Header Actions
117
138
118
-
The `location` prop in `rightHeaderActionsComponent`, `leftHeaderActionsComponent`, and `prefixHeaderActionsComponent` updates reactively when a group moves. Use it to show controls specific to edge groups:
139
+
The `location` prop in `rightHeaderActionsComponent`, `leftHeaderActionsComponent`, and `prefixHeaderActionsComponent` updates reactively when a group moves. Use it to show controls specific to edge groups.
140
+
141
+
The `DockviewGroupLocation` type is a discriminated union:
To fully customize how tab group chips look, provide a `createTabGroupChipComponent` factory. It receives the `ITabGroup` and must return an `ITabGroupChipRenderer`.
0 commit comments