-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
LastPageLink in Paginator: doesn't give "totalPages" in options #5978
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Comments
riccardinhocala
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Feb 15, 2024
melloware
added
Status: Needs Reproducer
Issue needs a runnable reproducer
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Feb 15, 2024
Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days. |
I am confused as to what you are asking for so I need an example to see what you are doing and what you mean. |
melloware
added
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
and removed
Status: Needs Reproducer
Issue needs a runnable reproducer
labels
Feb 15, 2024
Thanks. |
melloware
added a commit
to melloware/primereact
that referenced
this issue
Feb 15, 2024
melloware
added a commit
that referenced
this issue
Feb 15, 2024
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
Describe the bug
As can also be seen in the documentation, the PaginatorLastPageLinkOptions interface does not give totalPages data (as is the case in PaginatorCurrentPageReportOptions, for example). To compensate for this lack, it is mandatory to use a useState because there is no possibility of calculating the last page using other options, which are available in other interfaces.
Reproducer
No response
PrimeReact version
10.5.1
React version
17.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
As with other Paginator components, having the totalPages in the options
The text was updated successfully, but these errors were encountered: