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
1 Reply
conscious-sapphire•9mo ago
I would create a hook first:
Then use it in any react component ike this: