-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hiddenByColumnsButton should hide in the table but show in the columnsButton selector #21
Comments
Here's how those props work:
This is not documented well and isn't intuitive. I propose that we change the behavior so that Example of how it must be used today:
|
Let me know how I can help! |
I'll work on this as time permits. It's functional so this is a low priority issue. This project needs a detailed list of props like the one at: That's comprehensive but the prop definitions could be improved. |
Allows column to be explicitly shown or hidden in columns menu independent of `hidden` flag.
I created a PR to address this. See #24 for more details. I suggest that we add the list of props to the main Readme. It's a hassle hunting for them on separate documentation pages. That will also free up the demo site to focus on examples. |
@peacechen I agree. We need a better way to keep track of all props. |
See here for more #24 |
Describe the bug
The prop
hiddenByColumnsButton
is documented on material-table.com along with thehidden
prop. The latter completely removes the columns. They don't render either in the table or in the columnsButton selector. Use case is that some columns should be hidden initially, but selectable if the user chooses to show them.https://github.com/mbrn/material-table/search?q=hiddenByColumnsButton
To Reproduce
Create a
columns
array and pass it to material-table. Any of the columns with the fieldhidden
are not visible in the column selector menu that's enabled byoptions.columnsButton
. I hoped thathiddenByColumnsButton
would allow them to remain in the menu and hide them in the table, but unfortunately it doesn't have any effect when set in the columns data.The text was updated successfully, but these errors were encountered: