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

Is there a way to expand the json along a saved path? #1441

Closed
Reeseman opened this issue May 25, 2022 · 2 comments
Closed

Is there a way to expand the json along a saved path? #1441

Reeseman opened this issue May 25, 2022 · 2 comments

Comments

@Reeseman
Copy link

I have a json object loaded in from an external API, so on page load the editor is automatically populated. Now that I have this, I'd also like to persist a path to a specific node in the editor, so the page's javascript can automatically expand the tree to a specific node upon page load. Saving the path is doable.

However, as far as I can tell there's actually not a way to expand values along a path from the package code. Even using vanilla JS + Jquery seems hard. Any recommendations?

@Reeseman Reeseman changed the title Is there a way to save path? Is there a way to expand the json along a saved path? May 25, 2022
@josdejong
Copy link
Owner

I think #1440 by @himanshu520 will solve your issue, it implements a method editor.expand(path, isExpand, recursive). The PR still has to be finished & merged.

@Reeseman
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants