tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

DataTable: Is there any option to handle onSelectionChanged with out enabling selectable #491

Open viswanathm opened 7 years ago

viswanathm commented 7 years ago

Hi,

I am using Data Table, I want to handle row click event. There is an option to enable 'selectable and then write a handler using 'onSelectionChanged'. But enabling 'selectable', I get checkboxes, which I don't want.

Is there any way to use onSelectionChanged, without showing checkboxes? or is there a way to access table or tr HTML tags that are rendered on to DOM, in componentDidMount()? so that I can manually bind click event on mount.

Thanks, Viswanath