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

Method open

src/aria/private/menu/menu.ts:728–736  ·  view source on GitHub ↗

Opens the menu.

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

Source from the content-addressed store, hash-verified

726
727 /** Opens the menu. */
728 open(opts?: {first?: boolean; last?: boolean}) {
729 this.expanded.set(true);
730
731 if (opts?.first) {
732 this.pendingFocus.set('first');
733 } else if (opts?.last) {
734 this.pendingFocus.set('last');
735 }
736 }
737
738 /** Closes the menu. */
739 close(opts: {refocus?: boolean} = {}) {

Callers 2

MenuTriggerPatternClass · 0.95
onClickMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected