DockManager
Window docking manager.
Dock manager manages all the dock panels in a hierarchy, similar to visual studio. It owns an HTML Div element inside which all panels are docked. Initially, the dock manager takes up the central space and acts as the root node.
Samples: https://public.datagrok.ai/js/samples/ui/docking/docking Learn more: https://github.com/coderespawn/dock-spawn for details.
Constructors
new DockManager()
new DockManager(
dart):DockManager
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Source
Properties
| Property | Type |
|---|---|
dart | any |
Accessors
documentContainer
getdocumentContainer():DockContainer
The document view is then central area of the dock layout hierarchy. This is where more important panels are placed (e.g. the text editor in an IDE, 3D view in a modeling package, etc.)
Returns
Source
element
getelement():HTMLDivElement
Returns
HTMLDivElement
Source
onClosed
getonClosed():Observable<HTMLElement>
Returns
Observable<HTMLElement>
Source
rootNode
getrootNode():DockNode
Returns
Source
Methods
close()
close(
object):void
Undocks the element.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | HTMLElement | DockNode | Element to undock |
Returns
void
Source
dock()
dock(
element,dockType,refNode,title?,ratio?):DockNode
Docks the element relative to the reference node.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
element | HTMLElement | Viewer<any> | undefined | Element to dock |
dockType | "fill" | "left" | "right" | "up" | "down" | DG.DOCK_TYPE.LEFT | Dock type (left | right | top | down | fill). |
refNode | null | DockNode | null | reference node |
title? | string | undefined | Name of the resulting column. Default value is agg(colName). |
ratio? | number | 0.5 | Ratio of the area to take (relative to the reference node). |
Returns
Source
findNode()
findNode(
element):undefined|DockNode
Finds the node of an element.
Parameters
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | Element to find the node for. |
Returns
undefined | DockNode
if node is found, undefined otherwise.