aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

Customise automatically row per page according to rows available in table #411

Open sakshi-kataria opened 8 years ago

sakshi-kataria commented 8 years ago

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

aslagle commented 8 years ago

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.