You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I solved this issue by using the collapseAll() function in the built-in loaded function:
let newTree = function(data){
let tree = new Tree('.container', {
data: data,
closeDepth: 1,
loaded: function () {
this.collapseAll()
},
onChange: function () {
}
})
}
closeDepth: 1 will help me to only show the first level of the tree with all collapsed.
If I click on an item it will open, but it opens all childrens not only the next level/children. How can I prevent this?
The text was updated successfully, but these errors were encountered: