minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] support virtual list

percy507 opened this issue Β· comments

Consider of current tree structure is nested, I wonder if it is possible to support virtual list for the case which has lots of nodes. πŸ˜‚

I have checked the tree structure of VSCode, they use flat style and it's easy to support virtual list.

How do we export the JSON data after shuffling or editing the node? Any comments.

There is no direct way to do that. You need write your own function to watch every change (node editing, node opening, node shuffling) and then do the stuff as you want.

Ok got it thanks. When I use initialOpen={true} it doesn't expand the tree while using the dynamic data in it. Any ideas?

Is this feature is planned to be implemented? There are a lot of rendering issues if you have a lot items tree.