mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Feature Request: more fine grained pagination options

Open JordanKadish opened this issue 8 years ago • 5 comments

Issue

My db has tons of entries, and I'd like to be able to skip pages similar to how sites like Amazon have numbers between their next/previous page options Example: at the bottom of the page have: < 1,a,b...c,d,96 > where a and b are 10 and 5 pages back from current page respectively (or disappear when <15 pages in) c and d are 5 and 10 pages ahead of current page respectively (or disappear when <15 pages from the end, being the 6th page)

Your Environment

Tech Version
mui-datatables 1.0.9
node 9.x
OS Linux

JordanKadish avatar Mar 23 '18 22:03 JordanKadish

Forgot to add for clarity: in the example, < and > are the current icons

JordanKadish avatar Mar 23 '18 22:03 JordanKadish

Ok, just to be clear here is what Amazon currently looks like:

screen shot 2018-03-23 at 9 23 20 pm

What mui-datatables currently presents:

screen shot 2018-03-23 at 9 26 04 pm

So doing this feature is more a design question. Where do we shift things? Maybe the row status (ie: 1-10 of 30) shifts all the way to the left and then inside it could list 5 numbers. I'm not sure, if you have a design in mind that marries what is already there with what you have in mind then it would be helpful

gregnb avatar Mar 24 '18 01:03 gregnb

I think rowes per page (along with the relevant count) should go on the far left, with the arrows/numbers in the center. Then you'd have space for a company logo or something in the bottom right ;)

JordanKadish avatar Mar 24 '18 17:03 JordanKadish

Ok I'm thinking along those lines as well. I'll add this to the todo items list

gregnb avatar Mar 25 '18 17:03 gregnb

This can now be done by the user with the customFooter override where a user can create a pagination to their own liking

gregnb avatar Aug 04 '18 20:08 gregnb