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

Hide expand icon on detailsPanel conditionally

katekozlowska opened this issue · comments

Demo of the issue/behavior/question

I have a table where I'm using detailsPanel to show some details on expanded view. If there is no details to show i'm simply displaying 'no records' info. I would prefer to just disable expand icon completely.

Screenshot 2023-06-09 at 12 03 45

Describe the solution you'd like

It would be nice to add a condition of displaying detailsPanel and disable 'expand' icon if rowData is empty - either remove the icon or style it as disabled / non clickable


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.