new BoundPanel(options)
A bound panel is a panel that is shown at a certain place
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | The options Properties
|
- Source:
Methods
-
<static> create(options)
-
Creates a new bound panel
Parameters:
Name Type Description optionsObject The options
Properties
Name Type Description nameString The component name
variantString A visual variation
leftNumber Pixels from left
topNumber Pixels from top
widthNumber Width in pixels
paddingNumber Padding in pixels
- Source:
-
add(child)
-
Adds a widget or element to the panel
Parameters:
Name Type Description childNode | Widget The object to add
- Source:
-
addSpace(height)
-
Adds som vertical space to the panel
Parameters:
Name Type Description heightpixels The height of the space in pixels
- Source:
-
hide()
-
Hides the panel
- Source:
-
isVisible()
-
If the panel is currently visible
- Source:
-
position(node)
-
Position the panel at a node
Parameters:
Name Type Description nodeNode The node the panel should be positioned at
- Source:
-
show()
-
Shows the panel
- Source:
-
toggle()
-
Show or hide the panel
- Source: