Replies: 5 comments
-
Thanks for this! Fyi, adding |
Beta Was this translation helpful? Give feedback.
-
Is it possible to achieve sticky footer?, right now i have a fixed height on my wrapper to also get virtualized scroll, but i need the footer to be fixed in the bottom |
Beta Was this translation helpful? Give feedback.
-
Finally a simple and clear example. Thank you |
Beta Was this translation helpful? Give feedback.
-
Instead of using the index, i used css first-child and last-child selectors to give the same result! `const TableBody = (props) => { return ( Thanks for the solution, it was fire🔥 |
Beta Was this translation helpful? Give feedback.
-
Figured out a solution for the time being: |
Beta Was this translation helpful? Give feedback.
-
Hi!
I know the question of pinning headers and columns comes up a lot here/elsewhere, so I wanted to share a fairly minimal working example using tailwind and
@tanstack/react-table
.https://codesandbox.io/s/sticky-header-and-first-column-tanstack-table-and-tailwind-3dfxod?file=/src/App.js
NOTES:
z-[1]
z-[2]
z-[3]
instead ofz-10
z-20
z-30
to play nice with my modals. I just resorted to standard tailwind classes here since the tailwind compiler is not set up.I haven't investigated these issues in too much depth, but I think the Firefox nuance might be solvable using box shadow. If anyone has suggestions for improvements, I'd love to see them posted here!
Beta Was this translation helpful? Give feedback.
All reactions