tleunen / react-mdl

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

Is there a way to implement DataTable click through? #401

Closed yaoxiao4 closed 7 years ago

yaoxiao4 commented 7 years ago

Hi, I've been using DataTable and I want to link each row to a different page (link is an attribute in each itme), was wondering if that's possible and how would I go about doing it

tleunen commented 7 years ago

There's currently no way to click on an entire row. You would have to add a button or something in a column to achieve this

yaoxiao4 commented 7 years ago

what about an individual cell ?

tleunen commented 7 years ago

If you set a custom cell formatter to display a link that takes the entire space, I believe it should work ;)

yaoxiao4 commented 7 years ago

that worked! thanks