Group API
Group API
Use the group API sparingly. As you move panels, groups change and if you don't track this correctly you may encounter unexpected behaviours. You should be able to achieve most things directly through the panel API.
component | The id of the component renderer |
|---|---|
height | The panel height in pixels |
id | The id of the panel that would have been assigned when the panel was created |
isActive | Whether the panel is the actively selected panel |
isFocused | Whether the panel holds the current focus |
isVisible | Whether the panel is visible |
onDidActiveChange | |
onDidDimensionsChange | |
onDidFocusChange | |
onDidParametersChange | |
onDidVisibilityChange | |
onWillFocus | |
width | The panel width in pixels |
getParameters | |
setActive | |
setVisible | |
updateParameters | |
component | The id of the component renderer |
height | The panel height in pixels |
id | The id of the panel that would have been assigned when the panel was created |
isActive | Whether the panel is the actively selected panel |
isFocused | Whether the panel holds the current focus |
isVisible | Whether the panel is visible |
onDidActiveChange | |
onDidConstraintsChange | |
onDidDimensionsChange | |
onDidFocusChange | |
onDidParametersChange | |
onDidVisibilityChange | |
onWillFocus | |
width | The panel width in pixels |
getParameters | |
setActive | |
setConstraints | |
setSize | |
setVisible | |
updateParameters | |
component | The id of the component renderer |
height | The panel height in pixels |
id | The id of the panel that would have been assigned when the panel was created |
isActive | Whether the panel is the actively selected panel |
isFocused | Whether the panel holds the current focus |
isVisible | Whether the panel is visible |
location | |
locked | 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 | |
onDidActivePanelChange | 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. |
onDidCollapsedChange | Fired when an edge group's collapsed state changes.
Never fires for non-edge groups. |
onDidConstraintsChange | |
onDidDimensionsChange | |
onDidFocusChange | |
onDidLocationChange | |
onDidParametersChange | |
onDidVisibilityChange | |
onWillFocus | |
width | The panel width in pixels |
close | |
collapse | Collapse this group (edge groups only). No-op for non-edge groups. |
exitMaximized | |
expand | Expand this group (edge groups only). No-op for non-edge groups. |
getHeaderPosition | |
getParameters | |
getWindow | If you require the Window object |
isCollapsed | Returns true if this edge group is currently collapsed.
Always returns false for non-edge groups. |
isMaximized | |
maximize | |
moveTo | |
setActive | |
setConstraints | |
setHeaderPosition | |
setSize | |
setVisible | |
updateParameters | |