I set the autoload property for the tree, so that the children will be loaded automatically when the left triangle of the parent node was clicked, and it works well.
Howevever, I need this function not only when the left triangle was clicked, but also the tree node text was clicked. I tried the tree.expand(id) method, but it doesn’t work. How to make it work?
The tree.toggle(id) method works.