MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / getNextItem

Function getNextItem

core/src/components/popover/utils.ts:373–376  ·  view source on GitHub ↗
(items: HTMLIonItemElement[], currentItem: HTMLElement | null)

Source from the content-addressed store, hash-verified

371 * undefined.
372 */
373export const getNextItem = (items: HTMLIonItemElement[], currentItem: HTMLElement | null) => {
374 const currentItemIndex = getIndexOfItem(items, currentItem);
375 return items[currentItemIndex + 1];
376};
377
378/**
379 * Given an array of elements and a currently focused ion-item

Callers 2

util.spec.tsFile · 0.90
callbackFunction · 0.85

Calls 1

getIndexOfItemFunction · 0.85

Tested by

no test coverage detected