I am trying to override component Row so it can be clickable and pass some action to it.
I have action buttons which do call, however I want to do the same call on row click. Can you give me advise how to solve it?
components={{
Row: props => (
<MTableBodyRow onClick={this.someFunc} {...props} />
)
}}
Hi @kuantayevs ,
Look at 3rd example at https://material-table.com/#/docs/features/detail-panel. MT already has a onRowClick prop.
Most helpful comment
Hi @kuantayevs ,
Look at 3rd example at https://material-table.com/#/docs/features/detail-panel. MT already has a onRowClick prop.