
Currently no. But you can use onRowClick to toggle detail panel.
Look at 3rd example at:
https://material-table.com/#/docs/features/detail-panel
Is it possible to remove the Icon?
You can not. But you i can add this feature. Because a lot of developer asked for it.
thanks for your feedback, hope this feature coming soon
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.
@mbrn, has the feature of hiding the "toggle" icon been implemented?
Also, is it possible to show a detail panel by default (without clicking anywhere)?
@mbrn, has the feature of hiding the "toggle" icon been implemented?
Also, is it possible to show a detail panel by default (without clicking anywhere)?
Not related to the original issue, but I was also looking for this feature. Using this as a workaround:
detailPanel={[
(rowData) => ({
disabled: isEmpty(rowData.notes), // hides hover state
icon: isEmpty(rowData.notes) ? ' ' : ChatBubbleOutline, // single space used here, empty string defaults to chevron
openIcon: isEmpty(rowData.notes) ? ' ' : ChatBubble, // single space
...
}),
]}
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.
Most helpful comment
You can not. But you i can add this feature. Because a lot of developer asked for it.