Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alwaysShowPaginator property for Paginator #2858

Closed
jonatino opened this issue May 23, 2017 · 2 comments
Closed

alwaysShowPaginator property for Paginator #2858

jonatino opened this issue May 23, 2017 · 2 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@jonatino
Copy link

[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

@sudheerj
Copy link
Contributor

sudheerj commented May 24, 2017

You are right. Paginator should display only when there are more than one page. This is how it works in PrimeFaces

@cagataycivici cagataycivici self-assigned this May 25, 2017
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label May 25, 2017
@cagataycivici cagataycivici added this to the 4.0.2 milestone May 25, 2017
@cagataycivici cagataycivici changed the title Hide Pagination if Only One Page alwaysShowPaginator property for Paginator May 25, 2017
@cagataycivici
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

3 participants