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

Method _groupNext

src/aria/private/toolbar/toolbar.ts:98–117  ·  view source on GitHub ↗

Navigates to the next widget in a widget group.

()

Source from the content-addressed store, hash-verified

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