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

Method _groupNext

src/aria/private/toolbar/toolbar.ts:97–116  ·  view source on GitHub ↗

Navigates to the next widget in a widget group.

()

Source from the content-addressed store, hash-verified

95
96 /** Navigates to the next widget in a widget group. */
97 private _groupNext() {
98 const currGroup = this.inputs.activeItem()?.group();
99 const nextGroup = this.listBehavior.navigationBehavior.peekNext()?.group();
100
101 if (!currGroup) {
102 return;
103 }
104
105 if (currGroup !== nextGroup) {
106 this.listBehavior.goto(
107 this.listBehavior.navigationBehavior.peekFirst({
108 items: currGroup.inputs.items(),
109 })!,
110 );
111
112 return;
113 }
114
115 this.listBehavior.next();
116 }
117
118 /** Navigates to the previous widget in a widget group. */
119 private _groupPrev() {

Callers 1

ToolbarPatternClass · 0.95

Calls 5

activeItemMethod · 0.80
peekNextMethod · 0.80
gotoMethod · 0.45
peekFirstMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected