MCPcopy Index your code
hub / github.com/angular/components / open

Method open

src/aria/private/menu/menu.ts:823–836  ·  view source on GitHub ↗

Opens the submenu.

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

Source from the content-addressed store, hash-verified

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