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

Method open

src/aria/private/menu/menu.ts:735–743  ·  view source on GitHub ↗

Opens the menu.

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

Source from the content-addressed store, hash-verified

733
734 /** Opens the menu. */
735 open(opts?: {first?: boolean; last?: boolean}) {
736 this.expanded.set(true);
737
738 if (opts?.first) {
739 this.pendingFocus.set('first');
740 } else if (opts?.last) {
741 this.pendingFocus.set('last');
742 }
743 }
744
745 /** Closes the menu. */
746 close(opts: {refocus?: boolean} = {}) {

Callers 2

MenuTriggerPatternClass · 0.95
onClickMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected