mbrn / material-table

Datatable for React based on material-ui's table with additional features

Home Page:https://material-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hiddenByColumnsButton not working

ErikParso opened this issue · comments

I would like to allow control of visibility of specific columns only. By the documantation setting hiddenByColumnsButton to true should hide column from columnsButton's options, but the column can still be selected in there.

Show in table, but not in columns button
Just set column.hiddenByColumnsButton to true (for single column) OR override the MTableToolbar component, setting prop columnsHiddenInColumnsButton to true (which effects all columns)

https://codesandbox.io/s/material-table-with-hidden-columns-forked-ojcl7h?file=/src/Components/TestList.jsx

Is there any other option how to specify columns that can be hidden by this control ?

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.