You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is created to accompany a pull request fixing the bug.
Describe the bug
The example code for programmatically paginating trough tables, in the isLastPage() function, is flawed because it only works correctly when the amount of items in the table is an exact multiple of the rows per page count.
Implement the example provided on [https://primeng.org/table#paginator], and make sure that the count of items (customers in the example) is not a multiple of the row size. This will result in the isLastPage() never returning true.
Expected behavior
The isLastPage() should return true when on the last page of a paginated table.
The text was updated successfully, but these errors were encountered:
This issue is created to accompany a pull request fixing the bug.
Describe the bug
The example code for programmatically paginating trough tables, in the
isLastPage()
function, is flawed because it only works correctly when the amount of items in the table is an exact multiple of the rows per page count.The issue can be fixed by replacing
with
Environment
Reproducer
No response
Angular version
18.1.0
PrimeNG version
17.18.9
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
22.6.0
Browser(s)
No response
Steps to reproduce the behavior
Implement the example provided on [https://primeng.org/table#paginator], and make sure that the count of items (customers in the example) is not a multiple of the row size. This will result in the
isLastPage()
never returning true.Expected behavior
The
isLastPage()
should return true when on the last page of a paginated table.The text was updated successfully, but these errors were encountered: