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

Method open

src/aria/private/menu/menu.ts:831–844  ·  view source on GitHub ↗

Opens the submenu.

(opts?: {first?: boolean; last?: boolean})

Source from the content-addressed store, hash-verified

829
830 /** Opens the submenu. */
831 open(opts?: {first?: boolean; last?: boolean}) {
832 if (this.disabled()) {
833 return;
834 }
835
836 this._expanded.set(true);
837
838 if (opts?.first) {
839 this.submenu()?.first();
840 }
841 if (opts?.last) {
842 this.submenu()?.last();
843 }
844 }
845
846 /** Closes the submenu. */
847 close(opts: {refocus?: boolean} = {}) {

Callers

nothing calls this directly

Calls 4

setMethod · 0.80
disabledMethod · 0.45
firstMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected