Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sortable Column for Table #322
This is not interactive. One still need to implement the interface that tell the parent component (or backend, when paginated) to sort the source data.
Currently, I'm working on a DATATABLE based on RT table lógic and follow the MD spec.
I'm making it in a responsive wrapper with horizontal scroll for content and I'll happy to share if @javivelasco agree...
This is a preview with header selected items, filters, pagination and rows per page..
And filter like this:
yes I have modified 3 files but not directly. I copied the table directory from RT, created a DataTable.js for manage the state (filters, rows per page and other), add the header and footer and modified a little the Table.js and TableRow.js files to include a callback for tableHeadercolumnClick, assing the event for select rows and some small changes in your handleSelect function because the current versión don't work with the multiselectable and unselect features.
I'll try to finish during this week and upload it at the weekend. I think that RT Table can be merge some features that I did, like "headerColumnClick callback", "width of columns" in model prop and the possibility of select a row in any place of the row(not only at checkbox.
When I finish obviously I'm going to share with you for test and add all you think is good.