How to know if the pagination is activated?
Hi everyone!
I'm trying to show a Pagination component dynamically.
If
nextPage
is undefined the idea is to not show the pagination buttons, by the other hand show it.
I used to do this in react-table v7 using nextPage
that comes undefined or the function.
Is that posible to know that?
Does anybody know how is the best way to do that?
Thank you in advanced 💚
I hope something like the image
1 Reply
eastern-cyan•3y ago
Couple ways that come to mind:
1.
table.getPageCount() > 1
2. table.getCanNextPage() || table.getCanPreviousPage()