daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

md-page-select - How to load more than 10 page number on scroll event. #560

Open sohampshetty opened 7 years ago

sohampshetty commented 7 years ago
  1. Currently, there is no way if I want to load 500 page number instead of just 10. How can I do that?

All the code to is hard coded.

content.on('scroll', function () {
      if((content.prop('clientHeight') + content.prop('scrollTop')) >= content.prop('scrollHeight')) {
        $scope.$applyAsync(function () {
          setPages(getMin(self.pages.length + 10, self.total));
        });
      }
    });
  1. How can I load all the pages in one go(I have 10000 records and limit is 10, so pages are 1000. How I can load all pages in one go instead of using the scroll down event).