-
add(workbenchComponent, title, collapsed)
-
Parameters:
Name |
Type |
Description |
workbenchComponent |
WorkbenchPanelComponent
|
The component to add. |
title |
String
|
The title to display for the component. |
collapsed |
boolean
|
if True, the initial state of the component will be collapsed. |
-
getComponentContainerId()
-
Returns the id of the element that represents the container which components will be added to within this
WorkbenchPanel
.
Returns:
the container id
-
getHeightOffset() → {int}
-
Returns the offset height of this panel
Returns:
The total height of the WorkbenchPanel including padding and borders in pixels.
-
Type
-
int
-
getOuterWidth() → {int}
-
Returns the outer width of this workbench panel.
Returns:
The total width of the WorkbenchPanel including padding and borders in pixels
-
Type
-
int
-
getWidth() → {int}
-
Returns the width of this panel.
Returns:
The inner width of the WorkbenchPanel in pixels
-
Type
-
int
-
setWidth(width)
-
Sets the width of this panel.
Parameters:
Name |
Type |
Description |
width |
int
|
The width of the WorkbenchPanel in Pixels. |