material-table icon indicating copy to clipboard operation
material-table copied to clipboard

detailPanel hide icon column

Open cristiangabor opened this issue 6 years ago • 3 comments

Is there a way to hide the whole column where the icons that expand detailPanel resides ?

I have disabled/null icon but there is still column space left image

cristiangabor avatar Jun 25 '20 22:06 cristiangabor

This would be great, yes. Some way to access that column and apply normal column options to it maybe. I've been going through the source but am quite new to React so not sure where to begin.

Gr8tDaNe avatar Sep 11 '20 13:09 Gr8tDaNe

I did it. I've created a custom package that hides the detailPanel column because I couldn't wait for it to be implemented, if you wanna test it, here's the link: https://github.com/Gr8tDaNe/material-table Once installed you can just use options.renderDetailPanelColumn: false to hide it (remember to implement a rowclick or another way to open it).

I'm a noob so this is probably not the ideal way of publishing a package, but I was short on time. I'll submit a pull request later today.

Set detailPanelColumnAlignment: "right", as well or the table won't render properly. I'll look into why that is when I have time.

Gr8tDaNe avatar Sep 12 '20 01:09 Gr8tDaNe

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.

stale[bot] avatar Dec 11 '20 01:12 stale[bot]