MCPcopy Create free account
hub / github.com/angular/components / toggleMenu

Method toggleMenu

src/material/menu/menu-trigger.ts:122–124  ·  view source on GitHub ↗

Toggles the menu between the open and closed states.

()

Source from the content-addressed store, hash-verified

120
121 /** Toggles the menu between the open and closed states. */
122 toggleMenu(): void {
123 return this.menuOpen ? this.closeMenu() : this.openMenu();
124 }
125
126 /** Opens the menu. */
127 openMenu(): void {

Callers 1

_handleClickMethod · 0.95

Calls 2

closeMenuMethod · 0.95
openMenuMethod · 0.95

Tested by

no test coverage detected