-
-
Notifications
You must be signed in to change notification settings - Fork 31
Collapse events and setting collapse #145
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
Good suggestion, and should be fairly easy to implement. I'll have a play around and keep you posted. |
Hi @Jack-skitt, sorry for the slow progress on this. Just thinking about it -- I can easily at an |
Hi @Jack-skitt -- I have made an initial version of this functionality and have a beta available if you'd like to try it out: https://www.npmjs.com/package/json-edit-react/v/1.25.0-beta1 See the documentation for "External control" for how to implement it. Hopefully it works for you, though completely capturing the collapse state and re-initialising it might be a bit too complex -- let me know how it goes, and if you have any suggestions for improvement before I make an official release. |
Hi,
Is it possible to have a onCollapse event, or be able to set which nodes are collapsed, what we are trying to do is save which nodes are expanded so when the user comes back to the page they won't have to re expand the tree to where they left off?
The text was updated successfully, but these errors were encountered: