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

Method open

src/aria/private/menu/menu.ts:824–837  ·  view source on GitHub ↗

Opens the submenu.

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

Source from the content-addressed store, hash-verified

822
823 /** Opens the submenu. */
824 open(opts?: {first?: boolean; last?: boolean}) {
825 if (this.disabled()) {
826 return;
827 }
828
829 this._expanded.set(true);
830
831 if (opts?.first) {
832 this.submenu()?.first();
833 }
834 if (opts?.last) {
835 this.submenu()?.last();
836 }
837 }
838
839 /** Closes the submenu. */
840 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