fix(table): total records logic
Fix: https://github.com/primefaces/primeng/issues/17569
Changes in this fix:
- The
totalRecordsinput property was not considered when calculating the total number of elements, regardless of whether the table was filtered or not.
Implementation Details:
- The
_totalRecordsproperty now correctly represents the original value of@Input() totalRecords. - When
p-tablecalculates the total number of records, it will first check if@Input() totalRecordsis a valid number. - If
totalRecordsis not valid/set, the table will default to usingvalue.lengthas the total record count.
Deployment failed with the following error:
Creating the Deployment Timed Out.
@cetincakiroglu do you know if this PR is still under review?
The related issue still appears to be unresolved, so if possible, it would be great to close this PR soon. Let me know if there's anything I can do to help move it forward.
CC: @cagataycivici
How this issue it still not fixed???
@cetincakiroglu @cagataycivici
Tables are not really usable using an API. Guys, this is critical to be fixed.
CC: @cagataycivici
Thanks a lot for your contribution!