You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am setting up a system to dynamically hide columns on react-table.
Basically, I have a main component "ServerSideTable" that handles a lot of things in server side, like filters, sorting, pagination, etc... And inside, there is my Table component and my Settings component for the display management of the columns.
I thought I could use initialState {hiddenColumns} to dynamically mask, so SettingsInteractors currently returns an array of strings (ex: ["name", "price"] , but I can return something else.
My question is : Is it possible to use the parent state to change the columns displayed in Table ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am setting up a system to dynamically hide columns on react-table.
Basically, I have a main component "ServerSideTable" that handles a lot of things in server side, like filters, sorting, pagination, etc... And inside, there is my Table component and my Settings component for the display management of the columns.
I thought I could use initialState {hiddenColumns} to dynamically mask, so SettingsInteractors currently returns an array of strings (ex: ["name", "price"] , but I can return something else.
My question is : Is it possible to use the parent state to change the columns displayed in Table ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions