ng-table icon indicating copy to clipboard operation
ng-table copied to clipboard

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

Open talamaska opened this issue 8 years ago • 3 comments

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

talamaska avatar Aug 18 '17 17:08 talamaska

This would be a nice feature, yes.

NevillePHolistics avatar Aug 22 '17 15:08 NevillePHolistics

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

talamaska avatar Aug 22 '17 15:08 talamaska

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

mkumar-convoso avatar Nov 30 '23 16:11 mkumar-convoso