An options object for creating a dock layout.

interface IOptions {
    document?: Document | ShadowRoot;
    hiddenMode?: HiddenMode;
    renderer: DockLayout.IRenderer;
    spacing?: number;
}

Properties

document?: Document | ShadowRoot

The document to use with the dock panel.

The default is the global document instance.

hiddenMode?: HiddenMode

The method for hiding widgets.

The default is Widget.HiddenMode.Display.

The renderer to use for the dock layout.

spacing?: number

The spacing between items in the layout.

The default is 4.