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

Method trigger

src/aria/private/menu/menu.ts:384–388  ·  view source on GitHub ↗

Triggers the active menu item.

()

Source from the content-addressed store, hash-verified

382
383 /** Triggers the active menu item. */
384 trigger() {
385 this.inputs.activeItem()?.hasPopup()
386 ? this.inputs.activeItem()?.open({first: true})
387 : this.submit();
388 }
389
390 /** Submits the menu. */
391 submit(item = this.inputs.activeItem()) {

Callers 1

MenuPatternClass · 0.95

Calls 3

submitMethod · 0.95
activeItemMethod · 0.80
openMethod · 0.65

Tested by

no test coverage detected