[X] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
Current behavior
Currently pagination will always show no matter how many pages you actually have.
Expected behavior
It would be nice to hide the pagination buttons if there is only 1 page.
Please tell us about your environment:
Windows 10, Chrome
Angular version: 2.0.X
2.4.0
PrimeNG version: 2.0.X
2.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All
Language: [all | TypeScript X.X | ES6/7 | ES5]
All
You are right. Paginator should display only when there are more than one page. This is how it works in PrimeFaces
Added alwaysShowPaginator to DataTable, DataGrid and DataList, same as in PrimeFaces.
Most helpful comment
Added alwaysShowPaginator to DataTable, DataGrid and DataList, same as in PrimeFaces.