esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

How to remove pagination? #1000

Open roccomuso opened 7 years ago

roccomuso commented 7 years ago

Is pagination added by default? how to remove it?

ale-nasso commented 7 years ago

I use this solution I found online, but I'm not able to find the source

            new NgTableParams({
                page: 1,
                count: 10
            }, {
                counts: [5, 10, 25, 50],
                                    ....
                             })

becomes

            new NgTableParams({             
                count: dataset.length    // hides pager
            }, {
                counts: [],                      // hides page sizes
                                    ....
                             })
cristianstu commented 5 years ago

Using getData instead of dataset, this seems to work fine

new ngTableParams({
  count: Infinity
}, {
  counts: []
})