Show/hide specific columns in a table #16240
-
Hey! I'm trying to allow the user to check which columns they want to see in the table, I've set up a multi-selection picker and update setting on table conditions. But this setting is affecting all of the columns, instead of just the one. Is there any option to show/hide specific columns based on the checkboxes the user selects? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I've managed to find a way,but I currently have 4 checkboxes and in order to allow any combination, I have a total of 16 conditions. Each condition's IF statement checks the order in which the checkboxes have been checked and returns the value in the same order. So I feel like this is quite a complicated way to do it. Is there any simpler way to achieve this? |
Beta Was this translation helpful? Give feedback.
-
Hey @ricoo08 - I think your solution is currently the way to do it, which is to say that there's no good way to do this. I know in the past, I've spoken to colleagues about this, and it's an area that could certainly use some attention. Using the approach you've implemented, the complexity of the conditions would grow exponentially when the number of columns increases. Users can hide columns by clicking the kebab-menu icon in the heading of each column and selecting "Hide Column", though this is currently broken, I have a PR to fix this here: #16242 I've written up a feature request on your behalf, you can read it here: #16284 |
Beta Was this translation helpful? Give feedback.
Hey @ricoo08 - I think your solution is currently the way to do it, which is to say that there's no good way to do this.
I know in the past, I've spoken to colleagues about this, and it's an area that could certainly use some attention. Using the approach you've implemented, the complexity of the conditions would grow exponentially when the number of columns increases.
Users can hide columns by clicking the kebab-menu icon in the heading of each column and selecting "Hide Column", though this is currently broken, I have a PR to fix this here: #16242
I've written up a feature request on your behalf, you can read it here: #16284
Please feel free to add any further comments or context you fe…