Panel API
Panel API
The panel API controls a single Dockview panel: sizing, visibility, focus, and parameter updates.
component | The id of the component renderer
|
|---|---|
group |
|
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
|
isGroupActive |
|
isPinned | Whether this panel's tab is pinned. Pinned tabs render before unpinned
tabs, never overflow, and resist cross-boundary reorder. Owned by the
PinnedTabs module. Reads false until a panel is pinned, which requires
pinnedTabs.enabled (both setPinned and restore are gated on it), so a
component with pinning disabled always reports false.
|
isVisible | Whether the panel is visible
|
location |
|
onDidActiveChange |
|
onDidActiveGroupChange |
|
onDidChangePinned |
|
onDidDimensionsChange |
|
onDidFocusChange |
|
onDidGroupChange |
|
onDidLocationChange |
|
onDidParametersChange |
|
onDidRendererChange |
|
onDidTitleChange |
|
onDidVisibilityChange |
|
onWillFocus |
|
renderer |
|
tabComponent | The id of the tab component renderer
Undefined if no custom tab renderer is provided
|
title |
|
width | The panel width in pixels
|
close |
|
exitMaximized |
|
getParameters |
|
getWindow | If you require the Window object
|
isMaximized |
|
maximize |
|
moveTo |
|
setActive |
|
setConstraints |
|
setPinned | Pin or unpin this panel's tab. No-op (warns once) when the PinnedTabs
module is not registered, and dormant unless pinnedTabs.enabled is set.
|
setRenderer |
|
setSize |
|
setTitle |
|
updateParameters |
|
See also
- Add a panel: how panels are created and referenced.
- Panel rendering: how a panel's content is rendered.