Select On Row Click

Usage#

import MaterialTable from "@material-table/core";
<MaterialTable
// ...
components={{
Row: (props) => {
return <MTableBodyRow {...props} onRowClick={onRowClicked} />;
},
}}
options={{
selection: true,
}}
/>;

Live Demo#

note

See here for more on the GLOBAL_VARS we use in our demos

Live Editor
Result
Table Title
Age
Name
22Joe
67Mary