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

Method _groupNext

src/aria/private/toolbar/toolbar.ts:133–152  ·  view source on GitHub ↗

Navigates to the next widget in a widget group.

()

Source from the content-addressed store, hash-verified

131
132 /** Navigates to the next widget in a widget group. */
133 private _groupNext() {
134 const currGroup = this.inputs.activeItem()?.group();
135 const nextGroup = this.navigationBehavior.peekNext()?.group();
136
137 if (!currGroup) {
138 return;
139 }
140
141 if (currGroup !== nextGroup) {
142 this.navigationBehavior.goto(
143 this.navigationBehavior.peekFirst({
144 items: currGroup.inputs.items(),
145 })!,
146 );
147
148 return;
149 }
150
151 this.navigationBehavior.next();
152 }
153
154 /** Navigates to the previous widget in a widget group. */
155 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