gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

Can I use jumpToPage and go to first (or last) page together? #1982

Open marynaCloudomation opened 1 year ago

marynaCloudomation commented 1 year ago

Hi! Thank you for the library!

Tell me please how can I use at once jumpToPage and showFirstButton/showLastButton in a TableFooter? The problem is that I can't pass showFirstButton/showLastButton directly to a Table props, for this purpose I should create CustomFooter and pass that props to TablePagination. And according to your code if we use customFooter we can't have JumpToPage component anymore.

The simplest solution for me is to give us a possibility to import JumpToPage component from the library. So we can add it to a CustomFooter. Can you do that? Or maybe there is another way?