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

Method getMenu

src/cdk/menu/menu-item.ts:149–151  ·  view source on GitHub ↗

* Get a reference to the rendered Menu if the Menu is open and it is visible in the DOM. * @return the menu if it is open, otherwise undefined.

()

Source from the content-addressed store, hash-verified

147 * @return the menu if it is open, otherwise undefined.
148 */
149 getMenu(): Menu | undefined {
150 return this._menuTrigger?.getMenu();
151 }
152
153 /** Get the CdkMenuTrigger associated with this element. */
154 getMenuTrigger(): CdkMenuTrigger | null {

Callers

nothing calls this directly

Calls 1

getMenuMethod · 0.65

Tested by

no test coverage detected