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
Thank you for such a nice nav-tree.
I'm not really good at js and have a question: function loadCompleted(result) { $scope.tree = result.data; $scope.tree_ctrl = {}; }
Here is my function for success webApi data request and my tree is look good but i want it will be collapsed, when it appears
When i'm doing a button with ng-click="tree_ctrl.collapse_all()" - it works ok, but i can't collapse my tree when it appears
Could you help me how to do it?
The text was updated successfully, but these errors were encountered:
I guess you only need to wait for the tree to be rendered with angular and then command it to collapse or expand.
So this should work $timeout(function(){$scope.tree_ctrl.expand_all();});
Thank you for such a nice nav-tree.
I'm not really good at js and have a question:
function loadCompleted(result) { $scope.tree = result.data; $scope.tree_ctrl = {}; }
Here is my function for success webApi data request and my tree is look good but i want it will be collapsed, when it appears
When i'm doing a button with ng-click="tree_ctrl.collapse_all()" - it works ok, but i can't collapse my tree when it appears
Could you help me how to do it?
The text was updated successfully, but these errors were encountered: