tui.tree icon indicating copy to clipboard operation
tui.tree copied to clipboard

JSON import and export

Open dodumosu opened this issue 4 years ago • 0 comments

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.

dodumosu avatar Sep 26 '20 11:09 dodumosu