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

p-table paginator add template feature #7732

Closed
mickeyjohn opened this issue May 24, 2019 · 2 comments
Closed

p-table paginator add template feature #7732

mickeyjohn opened this issue May 24, 2019 · 2 comments

Comments

@mickeyjohn
Copy link

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
Paginator when in used with p-table does not support custom templates such as: templateLeft and templateRight.

Expected behavior
Should have a way to use custom template in paginator to display: total records or record ranges as mentioned before in #4329

What is the motivation / use case for changing the behavior?
I would be much more helpful to have this feature supported so we can display more useful information to the users along with the table.

  • Angular version: 7.X
  • PrimeNG version: 7.1.3
@davisb10
Copy link
Contributor

There are currently "paginatorleft" and "paginatorright" as pTemplate types:

<ng-template pTemplate="paginatorleft" let-state>
    {{state.first}}
    <button type="button" pButton icon="fa-refresh"></button>
</ng-template>
<ng-template pTemplate="paginatorright">
    <button type="button" pButton icon="fa-cloud-upload"></button>
</ng-template>

@mickeyjohn
Copy link
Author

Thank you so much @davisb10 for your quick response. I did not know we can do this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants