Paginator

UI Components for React
Post Reply
untitled14
Posts: 1
Joined: 07 Nov 2018, 08:58

07 Nov 2018, 09:19

On currentPageReport template, would it be possible to have localisation or change the text inside of it, because now it is '({currentPage} of {totalPages})'?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

13 Nov 2018, 09:07

You can change the location by reordering template text. For example;

Code: Select all

template="FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"

Code: Select all

template="FirstPageLink PrevPageLink NextPageLink LastPageLink CurrentPageReport"

these have different result.
Not yet, you can't change the text but we will discuss this issue.

superhp
Posts: 2
Joined: 26 Sep 2016, 09:31

15 Nov 2018, 23:16

It would be really nice if CurrectPageReport could be editable. Mainly, for multi language support. The change is not complicated, we need a new property for Paginator component. I have registered an enhancement request https://github.com/primefaces/primereact/issues/636 and commited a pull request https://github.com/primefaces/primereact/pull/637 for that change a few days ago.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

20 Nov 2018, 14:45

Thank you for github issue and PR. We will review.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests