-
Notifications
You must be signed in to change notification settings - Fork 782
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
Expandable Rows #362
Comments
Hi, @sugargreenbean I discussion this feature with @AllenFang recently, it sound a good idea,but we have to observation and plan this feature. maybe we can achieve it. |
@sugargreenbean, I thinks it's a nice feature for |
Ok, good to hear! Meanwhile, I am working on this. I see that the rows are generated as |
@sugargreenbean, yes, it is in
However, I think expand row is a little hard to implement, maybe we can discuss more on it. |
This is what I have currently tried: |
Sorry, I updated my 2nd comment with proper styling so you can see my code examples which were not previously viewable. |
I thinks you can just render |
Currently in TableBody.js, for var tableRows, instead of |
This creates a desired accordion of expandable rows, however I still need to figure out how to give each row a unique identifier so that when they are clicked they only show/close the associated sibling row. |
I'm also not sure how to wire it so that accordion is a flagged option with this table. The way I have written this, the accordion is mandatory. |
@sugargreenbean, maybe be you can give me your repo and point where need to help, I think I can give some suggestion. BTW, we've plan to do this feature in near future. :) |
Thank you for your help. The only thing I want to do is to use react bootstrap table inside my own project with my modifications, how can I do that? My project is pointing to this Github repo. |
if you fork my repo to yours and modify on it. You can point to your repo by git repo link, likes: github:AllenFang/react-bootstrap-table. I dont try it on my project but just saw somebody used it |
@sugargreenbean , thanks ! |
@lioralt Hi, I worked on this for a while, but trying to create 2 children from the same parent with an array where 1st element would be the row and the 2nd element would be the row details returned nondeterministic errors regarding the way React tries to assign its unique react ID's to each DOM. As such, I stopped working on it. |
Also looking forward for this feature ! |
Any updates? |
in |
Row Expand is not working for me. I have v3,4,5.Below is code. Need help!! |
Looking for a way to click on a row or an icon within a column and then it expands with more information about that row. Something similar to this: http://daviferreira.github.io/react-sanfona/ or this http://mandarinconlabarba.github.io/react-tree-menu/example/index.html
As the table seems to only expose columns, I have no idea how to customize rows. Thank you for any help!
The text was updated successfully, but these errors were encountered: