Skip to content

Select a node inside the controller #30

Description

@hmendezm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions