TanStackT
TanStack16mo ago
1 reply
then-purple

Dynamically hide columns based on width/resize

Hello,
i have set columns. and i want to add responsiveness.
how i want it to work is to hide the last column visible as the screen gets smaller, which would result in a table with 2-3 columns by the time it reaches mobile.

is there any automatic way for me to do this?

example if the table starts to have a scrollbar, remove/hide last visible column
Was this page helpful?