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

Method open

src/aria/menu/testing/menu-harness.ts:121–128  ·  view source on GitHub ↗

Opens the menu if it is currently closed.

()

Source from the content-addressed store, hash-verified

119
120 /** Opens the menu if it is currently closed. */
121 async open(): Promise<void> {
122 if (!(await this.isOpen())) {
123 const trigger = await this._getTrigger();
124 if (trigger) {
125 await trigger.click();
126 }
127 }
128 }
129
130 /** Closes the menu if it is currently open. */
131 async close(): Promise<void> {

Callers

nothing calls this directly

Calls 3

isOpenMethod · 0.95
_getTriggerMethod · 0.95
clickMethod · 0.65

Tested by

no test coverage detected