addPane

Description

Add a pane by splitting an existing one. The new pane holds a glass, and the title and content you pass are carried into that glass's header and body.

binaryWindow.addPane(targetPaneSashId, options);

Parameters

Function parameters

NameTypeDescription
targetPaneSashIdstringTarget pane's Sash ID that the new pane is added to.
optionsobjectOptions for new pane. e.g., size, position, etc.

options details

NameTypeDescription
contentstring | DOM Node | ReactNode1Content of the new pane
idstringSash ID to the new pane
positionstringPosition of the new pane. One of top, right, bottom, or left
sizenumber | stringSize of the new pane. e.g., 100, 0.5, "50%"
titlestring | DOM Node | ReactNode1Title of the new pane

Returns

Type: Sash object

Description: Newly created Sash object.

Examples

See also

Footnotes

  1. DOM Node is for vanilla Javascript, and ReactNode is for React. 2