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

Method hasSubmenu

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

Whether this item has a submenu.

()

Source from the content-addressed store, hash-verified

201
202 /** Whether this item has a submenu. */
203 async hasSubmenu(): Promise<boolean> {
204 return (await this.host()).matchesSelector(MatMenuHarness.hostSelector);
205 }
206
207 /** Gets the submenu associated with this menu item, or null if none. */
208 async getSubmenu(): Promise<MatMenuHarness | null> {

Callers 2

getSubmenuMethod · 0.95
withMethod · 0.45

Calls 1

matchesSelectorMethod · 0.65

Tested by

no test coverage detected