API
API
constructor | |
|---|---|
height | Height of the component. |
length | The current number of panels. |
maximumSize | The maximum size the component can reach where size is measured in the direction of orientation provided. |
minimumSize | The minimum size the component can reach where size is measured in the direction of orientation provided. |
onDidAddView | Invoked when a view is added. |
onDidLayoutChange | Invoked whenever any aspect of the layout changes.
If listening to this event it may be worth debouncing ouputs. |
onDidLayoutFromJSON | Invoked after a layout is loaded through the fromJSON method. |
onDidRemoveView | Invoked when a view is removed. |
orientation | The current orientation of the component. |
panels | The list of current panels. |
width | Width of the component. |
addPanel | Add a new panel and return the created instance. |
clear | Remove all panels and clear the component. |
dispose | Release resources and teardown component. Do not call when using framework versions of dockview. |
focus | Focus the component. |
fromJSON | Deserialize a layout to built a splitivew. |
getPanel | Get the reference to a panel given it's string id. |
layout | Layout the panel with a width and height. |
movePanel | Move a panel given it's current and desired index. |
removePanel | Removes an existing panel and optionally provide a Sizing method
for the subsequent resize. |
toJSON | Serialize a layout |
updateOptions | Update configuratable options. |