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

Disable jump to last page #900

Open djaswal opened 8 years ago

djaswal commented 8 years ago

Hey, Is there pagination option which will disable users from accessing the last page or we would just have to setup custom pagination. I believe always providing access to last page can be really bad when server side contains a lot of data.

Thanks

djaswal commented 8 years ago

This is pretty easy to do, just need a conditional statement around:

https://github.com/esvit/ng-table/blob/master/dist/ng-table.js#L897