I'm using PrimeNG 4.1.0-rc.2
.
What I'm trying to create is datatable with fixed header. Header should be always visible even if I scroll my table to the bottom (like fixed menu on the top of stackoverflow).
I tried scrollable
and scrollHeight
properties of p-dataTable
but there is a scroll on the table side. I don't need it because I already have one for entire page.
Also I tried to fix it with position: fixed
but then table headers and table contents have a different size.
Any help would be appreciated.
Now I have something like this: http://embed.plnkr.co/bnB2ZDvDPZos3JLMmVFe/
There is scrollable
option turned on and position: fixed
is commented out.