Making Header Row Sticky in Next.js with TanStack Table #5387
Unanswered
adilvalizada
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I also have the same confusion. I expect the header of the table to be based on the viewport ceiling. Do you have any plan? |
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
-
I'm using TanStack Table in my Next.js project. I want to make the Header Row sticky in the table created with this library.
I tried the pinned row feature in the TanStack Table documentation, but it didn't work for me. I applied the 'position: sticky' property to the table header, but it also didn't work. The reason behind this issue is that I have applied the 'overflow' property to the parent element of the table. If I remove the 'overflow' property, the table will overflow from the edges of the page, which is not desirable. Below is a sample code snippet.
I would appreciate any help or alternative solutions anyone might have.
Beta Was this translation helpful? Give feedback.
All reactions