reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

Customise automatically row per page according to rows available in table

Open sakshi-kataria opened this issue 9 years ago • 1 comments

Hi I am using this package from 6 months and it is awesome but i am facing one common problem. Problem is
untitled

by default i set Rows per page 20 and in some cases records are less than 20 so is it possible to have functionality which auto change Row per page 20 to 1 to 19 any number

sakshi-kataria avatar Jul 14 '16 07:07 sakshi-kataria

Hi, I'm glad you like the package!

You could try the option showNavigation: "auto" that will hide the pagination at the bottom if the total records count is less than 20. Since there aren't any other pages to go to in that case, you don't really need the pagination bar.

But if you still want to show the total record count, there's nothing to change rowsPerPage automatically. You can set it to a ReactiveVar and update it yourself.

aslagle avatar Jul 14 '16 22:07 aslagle