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

I'm struggling to figure out how to set custom paging template #1016

Open talamaska opened 7 years ago

talamaska commented 7 years ago

I've found that there is an attribute templatePagination to ng-Table I guess I have to check how the current pagination is done in order to prepare a template. Is there any way that we can actually set templateUrl? It seems there are missing docs for the custom pagination. i don't need all the pages shown, just buttons for prev, next and current

NevillePHolistics commented 7 years ago

This would be a nice feature, yes.

talamaska commented 7 years ago

I have some findings. I use template-pagination attribute in order to change the html the template is pointing to, but just to actually make an empty template and completely wipe out the integrated paging. So i have made my own paging that is using the ngTableParams. method 'page' . It's not hard to make the math with the given data of items per page(.count) and total items(.total) So my paging looks like this. Btw i have encapsulated everything in my own component, I'm using ngTableDynamic and I'm massing params from outside, like for example which url to use for the requests in getData screenshot 2017-08-22 18 56 28

mkumar-convoso commented 12 months ago

https://stackoverflow.com/questions/33603703/placing-ng-table-pagination-after-div-id-test1