Is there an onRowClick
event or equivalent?
#47
Answered
by
KevinVandy
lachlancollins
asked this question in
Q&A
-
Hi, I'm looking at moving over from mui-datatables, but the one piece of functionality I couldn't figure out how to migrate was |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Aug 26, 2022
Replies: 1 comment 1 reply
-
Yes! Read the Table Event Listener Docs and you will find exactly what you are looking for. But here is basically what you want <MaterialReactTable
muiTableBodyRowProps={({ row }) => ({
onClick: (event) => {
console.info(event, row.id);
},
})}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lachlancollins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! Read the Table Event Listener Docs and you will find exactly what you are looking for.
But here is basically what you want