tui.tree
tui.tree copied to clipboard
JSON import and export
Version
4.0.3
Development Environment
Firefox 81, Windows 10
Current Behavior
The way to import the tree is to use the data
property when initialising the tree instance, but it doesn't seem to be possible to set a node ID when doing so. The only way to export the tree is to use the tree.eachAll()
method to build a new structure.
Expected Behavior
Being able to export the tree without having to manually rebuild a tree when iterating over the nodes might be useful, particularly when using the editable and drag and drop features.