-
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
Feature Request: Hook for delete and create #53
Comments
The hook for delete and create row is great, it's a good enhancement for this component. And your are right, the ID field always generated from server, so the ID field need to be not editable. However, I will spend some time to implement these feature. Thanks for your feedback :) |
Hi @ryanlinnane , I've add the hook for delete and create row on table, the example as follow: var options = { afterDeleteRow: onAfterDeleteRow, // A hook for after droping rows. afterInsertRow: onAfterInsertRow // A hook for after insert rows }; //... <BootstrapTable data={products} options={options}> //... </BootstrapTable> And about the field limitation in modal for row creation, I've not yet implement it. Maybe in next version :) |
HI @ryanlinnane , about the field limitation in modal for row creation, I think the |
HI @ryanlinnane, in 1.0.0, you can use |
I'd like to use this in conjunction with a backend REST API. Is there an easy way to know when a given action has occurred and on what cell so that i can make the appropriate ajax call? I see that EDIT has a hook for this. Furthermore, I love the automated modal for submission, but is there a way to limit the fields that pop up - i.e. ID may often be autogenerated on the server.
The text was updated successfully, but these errors were encountered: