here is my code ,and all the child node is expanded.
I want to unexpand all the child node?
how to do it
``
var tree = simTree({
el: '#tree',
data: list,
check: true,
linkParent: true,
//check: true,
onClick: function (item) {
console.log(item)
},
onChange: function (item) {
console.log(item)
}
});
})
here is my code ,and all the child node is expanded. I want to unexpand all the child node? how to do it `` var tree = simTree({ el: '#tree', data: list, check: true, linkParent: true, //check: true, onClick: function (item) { console.log(item) }, onChange: function (item) { console.log(item) } }); })
``