Table bottom slot / columns
-
Hello,
I would like to implement a total row at the bottom under the column which is summed up and at the same time using virtualization. Therefore I need the option to have in
template v-slot:bottom
a div aligned with the column. Is there a way to do this?Bottom row seems not to work because of the virtualization, which I need because of many rows…
https://codepen.io/martinfruehmorgen/pen/WNbZEyq
Thanks!
Martin -
QTable’s virtual scroll feature isn’t made to do that, with more than likely the logic being, nobody will scroll to the bottom to see the totals of a very large data set.
Couldn’t you set up the bottom slot to show the totals as you’ve already started?
Scott
-
Hi Scott,
thanks! Yes, I would like to set it up by using the bottom slot – but I need to align it below the column for which I would like to have the total… It would be the easiest to have the props also in the bottom slot, but I think that is not possible?
Martin
-
It would just take a good bit of formatting to have the totals stay under the columns. But for sure it’s possible.
Scott
-
Hello,
could anybody point me into the right direction regarding the formatting?
Thanks,
Martin -
Try creating a one row table with the same classes the table rows above use? Maybe?
Scott