API
API
This section describes the api object.
constructor | |
|---|---|
activeGroup | Active group object. |
activePanel | Active panel object. |
groups | All group objects. |
height | Height of the component. |
id | The unique identifier for this instance. Used to manage scope of Drag'n'Drop events. |
maximumHeight | Maximum height of the component. |
maximumWidth | Maximum width of the component. |
minimumHeight | Minimum height of the component. |
minimumWidth | Minimum width of the component. |
onDidActiveGroupChange | Invoked when the active group changes. May be undefined if no group is active. |
onDidActivePanelChange | Invoked when the active panel changes. May be undefined if no panel is active. |
onDidAddGroup | Invoked when a group is added. May be called multiple times when moving groups. |
onDidAddPanel | Invoked when a panel is added. May be called multiple times when moving panels. |
onDidAddPanelToTabGroup | Invoked when a panel is added to a tab group. |
onDidCreateTabGroup | Invoked when a tab group is created in any group. |
onDidDestroyTabGroup | Invoked when a tab group is destroyed in any group. |
onDidDrop | Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality. |
onDidLayoutChange | Invoked when any layout change occures, an aggregation of many events. |
onDidLayoutFromJSON | Invoked after a layout is deserialzied using the fromJSON method. |
onDidMaximizedGroupChange | |
onDidMovePanel | |
onDidOpenPopoutWindowFail | |
onDidPopoutGroupPositionChange | |
onDidPopoutGroupSizeChange | |
onDidRemoveGroup | Invoked when a group is removed. May be called multiple times when moving groups. |
onDidRemovePanel | Invoked when a panel is removed. May be called multiple times when moving panels. |
onDidRemovePanelFromTabGroup | Invoked when a panel is removed from a tab group. |
onDidTabGroupChange | Invoked when a tab group's properties (label, color) change. |
onDidTabGroupCollapsedChange | Invoked when a tab group is collapsed or expanded. |
onUnhandledDragOverEvent | |
onWillDragGroup | Invoked before a group is dragged.
Calling event.nativeEvent.preventDefault() will prevent the group drag starting. |
onWillDragPanel | Invoked before a panel is dragged.
Calling event.nativeEvent.preventDefault() will prevent the panel drag starting. |
onWillDrop | Invoked when a Drag'n'Drop event occurs but before dockview handles it giving the user an opportunity to intecept and
prevent the event from occuring using the standard preventDefault() syntax.
Preventing certain events may causes unexpected behaviours, use carefully. |
onWillShowOverlay | Invoked before an overlay is shown indicating a drop target.
Calling event.preventDefault() will prevent the overlay being shown and prevent
the any subsequent drop event. |
panels | All panel objects. |
size | Total number of groups. |
tabGroupColors | The active tab-group color palette. Reflects the configured
tabGroupColors option, or the built-in defaults when unset.
Useful for custom chip renderers that want to roll their own
picker UI. |
totalPanels | Total number of panels. |
width | Width of the component. |
addEdgeGroup | Add an edge group at the given position. Returns the group panel API
for the newly created group. Throws if a group already exists there. |
addFloatingGroup | Add a floating group |
addGroup | Add a group and return the created object. |
addPanel | Add a panel and return the created object. |
addPanelToTabGroup | |
addPopoutGroup | Add a popout group in a new Window |
clear | Reset the component back to an empty and default state. |
closeAllGroups | Close all groups and panels. |
createTabGroup | |
dispose | Release resources and teardown component. Do not call when using framework versions of dockview. |
dissolveTabGroup | |
exitMaximizedGroup | |
focus | Focus the component. Will try to focus an active panel if one exists. |
fromJSON | Create a component from a serialized object. |
getEdgeGroup | Get the group panel API for an edge group at the given position.
Returns undefined if no edge group is configured at that position. |
getGroup | Get a group object given a string id. May return undefined. |
getPanel | Get a panel object given a string id. May return undefined. |
getTabGroupForPanel | |
getTabGroups | |
hasMaximizedGroup | |
isEdgeGroupVisible | Check whether an edge group is currently visible. |
layout | Force resize the component to an exact width and height. Read about auto-resizing before using. |
maximizeGroup | |
moveTabGroup | |
moveToNext | Move the focus progmatically to the next panel or group. |
moveToPrevious | Move the focus progmatically to the previous panel or group. |
removeEdgeGroup | Remove an edge group and reclaim its slot in the layout.
All panels inside the group are disposed. Throws if no group exists at position. |
removeGroup | Remove a group and any panels within the group. |
removePanel | Remove a panel given the panel object. |
removePanelFromTabGroup | |
setEdgeGroupVisible | Set the visibility of an edge group. |
toJSON | Create a serialized object of the current component. |
updateOptions | |