Menu
A list of menu items.
element
HTMLElementA reference to the menu element.
textDirection
anyA signal wrapper for directionality.
id
anyThe unique ID of the menu.
wrap
anyWhether the menu should wrap its items.
typeaheadDelay
anyThe delay in seconds before the typeahead buffer is cleared.
parent
anyA reference to the parent menu item or menu trigger.
items
() => anyThe menu items as a writable signal.
TODO(wagnermaciel): This would normally be a computed, but using a computed causes a bug where sometimes the items array is empty. The bug can be reproduced by switching this to use a computed and then quickly opening and closing menus in the dev app.
isVisible
anyWhether the menu is visible.
onSubmit
anyA callback function triggered when a menu item is selected.
close
voidCloses the menu.
{ refocus?: boolean | undefined; } | undefinedvoidcloseAll
voidCloses all parent menus.
{ refocus?: boolean | undefined; } | undefinedvoidDescription
A list of menu items.
A menu is used to offer a list of menu item choices to users. Menus can be nested within other menus to create sub-menus.
<button ngMenuTrigger menu="menu">Options</button><div ngMenu #menu="ngMenu">  <div ngMenuItem>Star</div>  <div ngMenuItem>Edit</div>  <div ngMenuItem>Delete</div></div>