MCPcopy Index your code
hub / github.com/angular/components / close

Method close

src/material/menu/testing/menu-harness.ts:87–92  ·  view source on GitHub ↗

Closes the menu.

()

Source from the content-addressed store, hash-verified

85
86 /** Closes the menu. */
87 async close(): Promise<void> {
88 const panel = await this._getMenuPanel();
89 if (panel) {
90 return panel.click();
91 }
92 }
93
94 /**
95 * Gets a list of `MatMenuItemHarness` representing the items in the menu.

Callers 2

Calls 2

_getMenuPanelMethod · 0.95
clickMethod · 0.65

Tested by

no test coverage detected