Closed localjo closed 10 years ago
Pull request #6 partially addresses this. The only remaining part of this issue to address is preserving the expanded/collapsed state. I think InspectorJSON preserves it's collapsed state when it's own page is refreshed, but I need to see if I can re-use that functionality when the inspected page refreshes and if it will work reliably when the JSON data changes.
When the inspected tab changes, the plugin should refresh the page context JSON while preserving the expanded/collapsed state of the tree.
Currently when the inspected window finishes loading (after a navigation event, including refresh), I am attempting to update the Inspector JSON object with
inspector.view(pagecontext);
but that seems to break the Inspector JSON object. (It won't expand and collapse).I also need to figure out how to preserve the expanded/collapsed state. I think there was a way to do something similar in Storyteller, but I'm having trouble finding that.