Closed lucassimines closed 6 years ago
@fmcdigital You can use the current page value and the number of items per page to calculate the item's order across all pages:
<li v-for="(item, index) in paginated('items')">
{{ paginate.items.page * 3 + index + 1 }}. {{ item }}
</li>
In this example, I'm assuming that your paginated list is named items
and the number of items per page is 3
.
Yes, I already solved it, thanks for help :)
If I use a key to display the list number and go to page 2, it resets and go back to 1, for sure. But, there is any option to continue counting on every page?
I would like to keep couting the row number when I change the page.
Page 1:
Page 2:
...