material-table: When options={selection: true} is set the actions column does not appear for the table
Describe the bug
When options={selection: true}
is set the actions column does not appear for the table.
To Reproduce Steps to reproduce the behavior:
- Create a standard MaterialTable component
- Add props
options={{selection: true}}
andactions={[{ icon: 'account_circle', tooltip: 'test', onClick: (event, rowData) => { console.log(rowData);}}]}
- View table in browser
- Notice the checkbox column overwrites the Actions column. This also occurs if you try to change the actions column index.
Expected behavior Actions column should be added after the checkbox column on index 1 (assuming 0 indexed table columns) and to the left of the table data.
Desktop (please complete the following information):
- OS: MacOS Mojave 10.14.2
- Browser Chrome
- Version 72.0.3626.121
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
Thank you!
Making them behave like the other action buttons, to keep everything with the same syntax, would be best design I imagine. I look forward to seeing how its done 😃 Thank you so much!
I got it. I will change behaviour of edit buttons asap. Currentlly there is no solution to this case.