Hello!
I have a repeater and the following code to display the index numbers (1, 2, 3, 4, …)
$w.onReady(() => {
$w(“#repeater1”).onItemReady($i, iData, index) => {
$i(“#text1”).text = (index + 1).toString();
})
})
But when I load more items using the pagination bar, the index numbers remain the same (1, 2, 3, 4, …). I’d like to keep the index numbers running till the dataset is refreshed. So, on loading the next page it should be 5, 6, 7, 8, 9…
How can I achieve this?