gregnb / gregnb/mui-datatables
Cursor based pagination
Open
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Hi
Is it possible to use cursor based pagination with mui-datatables.
The GraphQl API I have designed returns cursors for the next and previous set of results along with booleans of hasNext and hasPrev.
I can use the `onTableChange` event to fire my mutations to get the next set of data but can't figure out how to enable the next and previous buttons based on hasNext and hasPrev booleans? Is this possible without a total count?
The only solution I can think of is to create a custom footer, which I was trying to avoid.
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.