Primeng: alwaysShowPaginator property for Paginator

Created on 23 May 2017  路  2Comments  路  Source: primefaces/primeng

[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

enhancement

Most helpful comment

Added alwaysShowPaginator to DataTable, DataGrid and DataList, same as in PrimeFaces.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings