linjingming / sim-tree

一个操作简单的基于jquery的树展示插件,支持异步展示子节点
MIT License
24 stars 3 forks source link

How to use destroy and refresh tree #2

Open NakulKadam-REISysIn opened 5 years ago

NakulKadam-REISysIn commented 5 years ago

I am using the simtree in salesforce lightning component and noticed one issue. Whenever I select a node and save it, the data gets saved in back-end. However when I again launch the tree, I see the old selection on UI. Not sure what's the issue is, So I was wondering if there is a method to destroy/refresh the tree. If yes, please provide an example.

linjingming commented 5 years ago

You can call the refresh method; like this oTree.refresh()