A menu bar of menu items.
element
HTMLElementA reference to the host element.
disabled
anyWhether the menubar is disabled.
softDisabled
anyWhether the menubar is soft disabled.
textDirection
anyThe directionality (LTR / RTL) context for the application (or a subtree of it).
values
anyThe values of the currently selected menu items.
wrap
anyWhether the menu should wrap its items.
typeaheadDelay
anyThe delay in milliseconds before the typeahead buffer is cleared.
onSelect
anyA callback function triggered when a menu item is selected.
close
voidCloses the menubar.
@returns
voidDescription
A menu bar of menu items.
Like the ngMenu, a ngMenuBar is used to offer a list of menu item choices to users.
However, a menubar is used to display a persistent, top-level, always-visible set of
menu item choices, typically found at the top of an application window.
<div ngMenuBar> <button ngMenuTrigger [menu]="fileMenu">File</button> <button ngMenuTrigger [menu]="editMenu">Edit</button></div><div ngMenu #fileMenu="ngMenu"> <div ngMenuItem>New</div> <div ngMenuItem>Open</div></div><div ngMenu #editMenu="ngMenu"> <div ngMenuItem>Cut</div> <div ngMenuItem>Copy</div></div>
Jump to details