(items: HTMLIonItemElement[], currentItem: HTMLElement | null)
| 381 | * undefined. |
| 382 | */ |
| 383 | export const getPrevItem = (items: HTMLIonItemElement[], currentItem: HTMLElement | null) => { |
| 384 | const currentItemIndex = getIndexOfItem(items, currentItem); |
| 385 | return items[currentItemIndex - 1]; |
| 386 | }; |
| 387 | |
| 388 | /** Focus the internal button of the ion-item */ |
| 389 | const focusItem = (item: HTMLIonItemElement) => { |
no test coverage detected