It would be really nice to be able to set the DataTable height to 100% and the scrollHeight to 100% so that the component would fill the available height and the p-datatable-scrollable-body would kick in if the height of the container is exceeded.
Unfortunately the scrollHeight prop only seems to accept px and I've had to resort to calculating it dynamically and watching the window size but it is very fragile.
Please PrimeTek, would you consider implementing this?
DataTable scrollable scrollHeight
Have I got egg on my face again...
This is already implemented and activated using:
I had one small problem with the table footer template contents overflowing but this was solved by adding the style:
This is already implemented and activated using:
Code: Select all
scrollHeight="flex"
Code: Select all
:deep .p-datatable-flex-scrollable .p-datatable-scrollable-wrapper {
overflow: hidden;
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests