menuBar

inline fun <S> KWidget<S>.menuBar(style: String = defaultStyle, init: MenuBar.(S) -> Unit = {}): MenuBar

Begins creation of a new MenuBar.

Return

a new instance of MenuBar.

Parameters

style

name of the MenuBar.MenuBarStyle.

init

allows to customize the MenuBar. Receives the container (such as a table cell or tree node) that the menu bar table was stored in, or the table itself if the parent does not use containers.