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

Method _getPanelId

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

Gets the id of the menu panel associated with this menu.

()

Source from the content-addressed store, hash-verified

139
140 /** Gets the id of the menu panel associated with this menu. */
141 private async _getPanelId(): Promise<string | null> {
142 const panelId = await (await this.host()).getAttribute('aria-controls');
143 return panelId || null;
144 }
145}
146
147export class MatMenuItemHarness extends ContentContainerComponentHarness<string> {

Callers 3

getItemsMethod · 0.95
getRootHarnessLoaderMethod · 0.95
_getMenuPanelMethod · 0.95

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected