new Bar(options)
A bar
options: { element : «Element», name : «String» }
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options |
Classes
Methods
-
<static> create(options)
-
Creates a new bar
options: { variant : «null | 'window' | 'mini' | 'layout' | 'layout_mini' | 'window_mini'», absolute : «true | false», name : «String» }
Parameters:
Name Type Description options
Object The options
-
add(widget)
-
Add a widget to the bar
Parameters:
Name Type Description widget
Widget The widget to add
-
addDivider()
-
Add a divider to the bar
-
addToDocument()
-
Add the bar to the page
-
hide()
-
Hide the bar
-
setVisible(visible)
-
Change the visibility of the bar
Parameters:
Name Type Description visible
Boolean If the bar should be visible
-
show()
-
Show the bar