Open bumbeishvili opened 1 year ago
I need lazy loading and drag & drop features
I can implement drag & drop. But really need lazy loading.
I don't plan to add new features (except of what is in the dev branch - 3.0 version) in the near future.
There were some discussions around lazy loading here - https://github.com/bumbeishvili/org-chart/issues/147
It might help you to implement your own
I missed 3.0 version. Gonna look at it.
I wonder how many nodes it can handle ?
It's not yet published. Basically, what is added are improved examples and a pagination feature, plan to fix some bugs before I publish it to the main branch, but it's usable to use it right now as it is
As for the nodes, if the whole tree is expanded, I was able to display 1800 nodes. If limited nodes are expanded, then it can handle tens of thousands of nodes (because they are not actually drawn)
Ty for the info. btw new example page looks good. I'll add reset view button asap :)
If I can add this button below the node. Then the lazy loading is done :D Probably it wont need any code to the base.
<button
onclick="chart.addNode({id:'child123',parentId:'100',name:'test',_centered:true}).render()"
>
Add node to the root
</button>
but it doesn't matter for now. If it can handle 1800 nodes, this is perfect for me. (I think above that count, the user cant handle xD)
Yes, but please be aware, it will be very slow