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

Method getSubmenu

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

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

()

Source from the content-addressed store, hash-verified

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

Callers 2

clickItemImplementationFunction · 0.45

Calls 1

hasSubmenuMethod · 0.95

Tested by

no test coverage detected