MCPcopy Create free account
hub / github.com/UI5/webcomponents / _handleRight

Method _handleRight

packages/base/src/delegate/ItemNavigation.ts:245–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 }
244
245 _handleRight() {
246 const itemsLength = this._getItems().length;
247 if (this._currentIndex < itemsLength - 1) {
248 this._currentIndex += 1;
249 return;
250 }
251
252 if (this._behavior === ItemNavigationBehavior.Cyclic) { // go to the first item in the next column
253 this._currentIndex = 0;
254 }
255 }
256
257 _handleHome() {
258 const homeEndRange = this._rowSize > 1 ? this._rowSize : this._getItems().length;

Callers 1

_onkeydownMethod · 0.95

Calls 1

_getItemsMethod · 0.45

Tested by

no test coverage detected