[Data Table] How to implement scrollHeight="flex" and frozen column datatable on page #36
Unanswered
ace-featherlight
asked this question in
PrimeVue
Replies: 1 comment 1 reply
-
We have a sample for PrimeNG version. https://www.primefaces.org/primeng-v14-lts/table/flexscroll So trick is to make sure, the container of the Table, has a flexible height as well relative to the viewport. The calc could have been avoided with flex-column I think. So;
These divs must fill up their height as well as they wrap Table. About frozen columns, a sample reproducer can help, this one works as well; https://stackblitz.com/run?file=src%2FApp.vue I think responsiveLayout is not needed after recent enhancements. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, PrimeTek team
I want to ask, how to implement scrollHeight="flex" datatable on page
On documentation the example is for modal, is posible to implement this on page ?
My expectation the header is always on top, and pagination is always on bottom, if row is less, or more
Currently I can't try
scrollHeight="flex"
, so I write ugly code :Yeah is working, but maybe I can write properly with prime way
I also want to make
Name
column frozen, I read on documentation it just add frozen option, but it seems not working with my code, is my implementation wrong, or the class on template is conflict ?Here my full code, the script is get from table page
views/uikit/Table.vue
Beta Was this translation helpful? Give feedback.
All reactions