react-json-tree icon indicating copy to clipboard operation
react-json-tree copied to clipboard

Adds notification handler for node expansion

Open philliphoff opened this issue 9 years ago • 0 comments
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.

philliphoff avatar Oct 28 '16 16:10 philliphoff