react-json-tree
react-json-tree copied to clipboard
Adds notification handler for node expansion
trafficstars
Adds the optional property onNodeExpansionChanged(keyName, data, level, expanded) to JSONNestedNode. This allows applications to be notified when a node is expanded or collapsed. This can be used, for example, in conjunction with shouldExpandNode to preserve the expansion state of the JSON tree across views.