GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Menu
  • MenuBar
  • MenuTrigger
  • MenuItem
  • Signal

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — Menu • Angular

API

    
      class Menu<V> implements OnDestroy {}
    
    

A reference to the host element.

The directionality (LTR / RTL) context for the application (or a subtree of it).

The unique ID of the menu.

Whether the menu should wrap its items.

The delay in milliseconds before the typeahead buffer is cleared.

Whether the menu is disabled.

A reference to the parent menu item or menu trigger.

Whether the menu is soft disabled.

Whether the menu is visible.

The tab index of the menu.

A callback function triggered when a menu item is selected.

The delay in milliseconds before expanding sub-menus on hover.

@returnsvoid

Closes the menu.

@returnsvoid

Description

A list of menu items.

A ngMenu is used to offer a list of menu item choices to users. Menus can be nested within other menus to create sub-menus. It works in conjunction with ngMenuTrigger and ngMenuItem directives.

<button ngMenuTrigger [menu]="myMenu">Options</button>

<div ngMenu #myMenu="ngMenu">
  <div ngMenuItem value="Star">Star</div>
  <div ngMenuItem value="Edit">Edit</div>
  <div ngMenuItem value="More" [submenu]="subMenu">More</div>
</div>

<div ngMenu #subMenu="ngMenu">
  <div ngMenuItem value="Sub Item 1">Sub Item 1</div>
  <div ngMenuItem value="Sub Item 2">Sub Item 2</div>
</div>
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.