Closed adammodlin closed 8 years ago
Is it possible to programmatically trigger a node expansion? For example, I make an Ajax call and set my tree to those results. I then want to expand the root node. Any way to do this?
I was able to do this by getting the root element of the directive, finding the descendants with the ".tree-branch-head" class and doing:
angular.element(myMatchingElement).triggerHandler('click');
Is it possible to programmatically trigger a node expansion? For example, I make an Ajax call and set my tree to those results. I then want to expand the root node. Any way to do this?