Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select a node inside the controller #30

Open
hmendezm opened this issue Feb 3, 2016 · 0 comments
Open

Select a node inside the controller #30

hmendezm opened this issue Feb 3, 2016 · 0 comments

Comments

@hmendezm
Copy link

hmendezm commented Feb 3, 2016

So sorry. This is not an issue but I do not know where to put this kind of questions.

What I try to do is to select a specific Node in the tree using a function inside the controller so.

$scope.SelectNode = function() {
var item = _.findWhere($scope.treeData, { id : $scope.selectedNodeId } );
//And Here I need to select the node in the tree so the user knows what s/he is looking at. Samething like item.select =true.
};

I try to use $scope.treeData.jstree("select_node", $scope.selectedNodeId); but it is not working I get the error TypeError: $scope.treeData.jstree is not a function

I really need help!
Best Regards
Henry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant