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-Sortable - ability to pass props to show sort order icon on column header that is sorted as the table loads #456

Open subuiyer opened 7 years ago

subuiyer commented 7 years ago

This is an enhancement request.

I am using Sortable to sort my DataTable. Before displaying the table, I do a default sort on the data. Now I'd like to also set the right sort order icon (ASC or DESC) on the column that is sorted. But at the moment there is no way to set the sorted column and order from outside sortable.

Can you add the ability to pass in the sorted column and order via props just like the table data gets passed now.