An item in a Menu.
element
HTMLElementA reference to the host element.
id
anyThe unique ID of the menu item.
value
anyThe value of the menu item.
disabled
anyWhether the menu item is disabled.
searchTerm
anyThe search term associated with the menu item.
parent
anyA reference to the parent menu or menubar.
active
anyWhether the menu item is active.
expanded
anyWhether the menu is expanded.
hasPopup
anyWhether the menu item has a popup.
open
voidOpens the submenu focusing on the first menu item.
@returns
voidclose
voidCloses the submenu.
@returns
voidDescription
An item in a Menu.
ngMenuItem directives can be used in ngMenu and ngMenuBar to represent a choice
or action a user can take. They can also act as triggers for sub-menus.
<div ngMenuItem (onSelect)="doAction()">Action Item</div><div ngMenuItem [submenu]="anotherMenu">Submenu Trigger</div>
Jump to details