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 ability to only have sort feature on columns with sortFunction applied. Not on IconButton. #478

Open chrisbull opened 7 years ago

chrisbull commented 7 years ago

I've built out a DataTable, and my very last column is a IconButton that is an action button. Similar to how Google does inbox. However when I apply sort to the columns, when I click the action button, the table wants to sort by the action button column. This is bad!

Feature should be that when I apply a sort function to the TableHeader... that's when the sort ability should apply. BUT NOT to ever column header. That way I can add this button, and it won't sort it when I click it.