Skip to content
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

Additional fields added to InsertRow modal from the row object, like expand row, not just defined columns. #37

Open
Kawirider636 opened this issue Aug 29, 2017 · 4 comments

Comments

@Kawirider636
Copy link

Maybe this exists already and I can't find it in an example. But currently I have a table with four defined columns for a "quick view' type functionality, then I use the expand row functionality to show all the additional fields from the row object. Passing that row object in is nice to have I can list all attributes from the object there. But if I want to add a new row using InsertRow I only have access to the columns defined in the table. So using the InsertRow modal I can only get fields for the columns in the table, not all the attributes on the row object. Is there anyway to do this or could this be a feature request?

Example: row shows just first name and last name, expand row shows, address, birthday, phone number, other contact details etc. Clicking InsertRow, modal only shows first name and last name. The columns object passed into the modal only has those 2 attributes. But I'd like the other ones to be there as well for address, phone, dob, etc.

Thanks.

@AllenFang
Copy link
Member

@Kawirider636 thanks your feedback, it's an issue from react-bootstrap-table and someone mentioned before. When developing for expand row, those additional field is useful to perform data in expanding row but I doesn't think about how to add them when insert, because I dont have any definition of those additional field, so in the react-bootstrap-table2, I will consider to change a way to using row expand. I think your idea can be implemented but we need care about it and more.

Thanks 👍

@AllenFang
Copy link
Member

@Chun-MingChen please remind me this issue when we start develop row expanding. thanks

@chunming-c
Copy link
Member

Sure :)

@apchandr
Copy link

@AllenFang, Can you please add insertRow and deleteRow feature for react-bootstrap-table2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants