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

Method next

src/aria/private/menu/menu.ts:609–617  ·  view source on GitHub ↗

Focuses the next menu item.

()

Source from the content-addressed store, hash-verified

607
608 /** Focuses the next menu item. */
609 next() {
610 const prevItem = this.inputs.activeItem();
611 this.listBehavior.next();
612
613 if (prevItem?.expanded()) {
614 prevItem?.close();
615 this.inputs.activeItem()?.open({first: true});
616 }
617 }
618
619 /** Focuses the previous menu item. */
620 prev() {

Callers 1

MenuBarPatternClass · 0.95

Calls 5

activeItemMethod · 0.80
expandedMethod · 0.80
openMethod · 0.65
nextMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected