-
Notifications
You must be signed in to change notification settings - Fork 978
Sortable Column for Table #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What can be done for this is to provide a custom element for a Table heading and then add a callback function to sort data out of the table component. I'll try an example during the afternoon and leave this open meanwhile |
Why is this issue closed? |
+1 |
I think it can be achieved out of react toolbox. You can sort the source! |
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. |
So the proper solution would be to modify the API so the |
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: |
Nice! Did you change the code for the |
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. |
@vmsoftware When are you doing a PR for this , or making it a component that can be added to a project. |
@vmsoftware are you planning on sending a PR for this. @javivelasco Why was this issue closed |
Because that's too much for a single component and it can be easily done with composition and the latest |
Could you please add Sortable Column for Table.
The text was updated successfully, but these errors were encountered: