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 options
Object The options
Properties
Name Type Description name
String The component name
variant
String A visual variation
left
Number Pixels from left
top
Number Pixels from top
width
Number Width in pixels
padding
Number Padding in pixels
- Source:
-
add(child)
-
Adds a widget or element to the panel
Parameters:
Name Type Description child
Node | Widget The object to add
- Source:
-
addSpace(height)
-
Adds som vertical space to the panel
Parameters:
Name Type Description height
pixels 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 node
Node The node the panel should be positioned at
- Source:
-
show()
-
Shows the panel
- Source:
-
toggle()
-
Show or hide the panel
- Source: