in PrimeNG table scrollable=true sticky header is not working #133
-
<p-table Name Country Representative Status {{ customer.name }} {{ customer.country.name }} {{ customer.representative.name }} {{ customer.status }} styles: [`
`] |
Beta Was this translation helpful? Give feedback.
Answered by
cetincakiroglu
Sep 29, 2023
Replies: 1 comment 3 replies
-
Hi, Could you please create a Stackblitz example so we can identify the issue? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The scrollable feature breaks the sticky, it's true because it does not have support for the sticky. Sticky is not an actual feature of primeng is a little CSS tweak actually. As an alternative, you can achieve the same thing by
vertical scroll
https://primeng.org/table#vertical-scroll or you can try to make sticky work by custom CSS.Here is an implementation of vertical scroll to your example https://stackblitz.com/edit/primeng-tablesticky-demo-vcidwy?file=src%2Fapp%2Fapp.component.html