Class: Bar

hui.ui. Bar


new Bar(options)

A bar

options: {
 element : «Element»,
 name : «String»
}
Parameters:
Name Type Description
options Object

The options

Source:

Classes

Button
Text

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

Source:

add(widget)

Add a widget to the bar

Parameters:
Name Type Description
widget Widget

The widget to add

Source:

addDivider()

Add a divider to the bar

Source:

addToDocument()

Add the bar to the page

Source:

hide()

Hide the bar

Source:

setVisible(visible)

Change the visibility of the bar

Parameters:
Name Type Description
visible Boolean

If the bar should be visible

Source:

show()

Show the bar

Source: