You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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.
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?
The text was updated successfully, but these errors were encountered: