-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
At the moment as can be seen on the examples given for Datatable ColGroup there is a fixed number calculated for the columns. The given example there doesn't make use of filtering or pagination. If I use a table with filtering or pagination the calculated sum in the ColumnGroup doesn't necessarily correspond to the rows shown, because its calculated on all rows and not only the visible ones. For the current version of PrimeReact the property 'footerColumnGroup' only accepts React.ReactNode as type. In my opinion it should be possible to also hand over a function which gets the visible rows as parameter, so the value can be calculated dependent from that.
Expected behavior
If I have a table which shows only x out of y rows, it should be possible the column sum is only calculated for the currently visible rows.
-
React version:
17.01 -
PrimeReact version:
7.1.0