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

Method open

src/aria/private/menu/menu.ts:758–766  ·  view source on GitHub ↗

Opens the menu.

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

Source from the content-addressed store, hash-verified

756
757 /** Opens the menu. */
758 open(opts?: {first?: boolean; last?: boolean}) {
759 this.expanded.set(true);
760
761 if (opts?.first) {
762 this.pendingFocus.set('first');
763 } else if (opts?.last) {
764 this.pendingFocus.set('last');
765 }
766 }
767
768 /** Closes the menu. */
769 close(opts: {refocus?: boolean} = {}) {

Callers 2

MenuTriggerPatternClass · 0.95
onClickMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected