reactive-table
reactive-table copied to clipboard
Customise automatically row per page according to rows available in table
Hi
I am using this package from 6 months and it is awesome but i am facing one common problem.
Problem is

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
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.