NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.86k stars 3.91k forks source link

Customise Pagination for Table #7844

Open newshahn opened 1 year ago

newshahn commented 1 year ago

What problem does this feature solve?

I am using an api for filling up a table that I have and it doesn't provide me with total number of elements. I would like to be able to change pagination in a way that it also accepts only the current page we are at and the right arrow (for next page).

What does the proposed API look like?

something like simple pagination except that we would have the option to tell if it has total elements or not and we can also enable/disable forward and back arrows.

OriginRing commented 1 year ago

@newshahn You can judge whether the length returned by the api is less than PageSize, and judge whether to display the next page