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
| Name | Type | Description |
|---|---|---|
targetPaneSashId | string | Target pane's Sash ID that the new pane is added to. |
options | object | Options for new pane. e.g., size, position, etc. |
options details
| Name | Type | Description |
|---|---|---|
content | string | DOM Node | ReactNode1 | Content of the new pane |
id | string | Sash ID to the new pane |
position | string | Position of the new pane. One of top, right, bottom, or left |
size | number | string | Size of the new pane. e.g., 100, 0.5, "50%" |
title | string | DOM Node | ReactNode1 | Title of the new pane |
Returns
Type: Sash object
Description: Newly created Sash object.
Examples
See also
- Pane — the concept
- updatePane / removePane