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

Method getSubmenu

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

Gets the submenu associated with this menu item, or null if none.

()

Source from the content-addressed store, hash-verified

206
207 /** Gets the submenu associated with this menu item, or null if none. */
208 async getSubmenu(): Promise<MatMenuHarness | null> {
209 if (await this.hasSubmenu()) {
210 return new MatMenuHarness(this.locatorFactory);
211 }
212 return null;
213 }
214}
215
216export async function clickItemImplementation(

Callers 2

clickItemImplementationFunction · 0.45

Calls 1

hasSubmenuMethod · 0.95

Tested by

no test coverage detected