{"action":"created","issue":{"url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/22","repository_url":"https://api.github.com/repos/arvindr21/jsTree-directive","labels_url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/22/comments","events_url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/22/events","html_url":"https://github.com/arvindr21/jsTree-directive/issues/22","id":99191141,"number":22,"title":"jstree instance","user":{"login":"icruces","id":752676,"avatar_url":"https://avatars.githubusercontent.com/u/752676?v=3","gravatar_id":"","url":"https://api.github.com/users/icruces","html_url":"https://github.com/icruces","followers_url":"https://api.github.com/users/icruces/followers","following_url":"https://api.github.com/users/icruces/following{/other_user}","gists_url":"https://api.github.com/users/icruces/gists{/gist_id}","starred_url":"https://api.github.com/users/icruces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icruces/subscriptions","organizations_url":"https://api.github.com/users/icruces/orgs","repos_url":"https://api.github.com/users/icruces/repos","events_url":"https://api.github.com/users/icruces/events{/privacy}","received_events_url":"https://api.github.com/users/icruces/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-08-05T12:14:24Z","updated_at":"2017-01-20T18:59:40Z","closed_at":"2017-01-20T09:45:52Z","body":"Hi, is there any way to retrieve the jstree instance in the controller so that I can use the jsTree API?\n\nMy problem is that I have multiple trees in a page and when I select one folder I would like to deselect any selected folder in the other trees. I think it could work by calling the \"deselect_all\" method in each tree.\n\nIt would be good if you could bind the instance with a scope variable:\n\n``` html\n<js-tree tree-instance=\"myTree\" ...>\n```\n\nThanks.\n"},"comment":{"url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/comments/274151463","html_url":"https://github.com/arvindr21/jsTree-directive/issues/22#issuecomment-274151463","issue_url":"https://api.github.com/repos/arvindr21/jsTree-directive/issues/22","id":274151463,"user":{"login":"qlux","id":15873382,"avatar_url":"https://avatars.githubusercontent.com/u/15873382?v=3","gravatar_id":"","url":"https://api.github.com/users/qlux","html_url":"https://github.com/qlux","followers_url":"https://api.github.com/users/qlux/followers","following_url":"https://api.github.com/users/qlux/following{/other_user}","gists_url":"https://api.github.com/users/qlux/gists{/gist_id}","starred_url":"https://api.github.com/users/qlux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qlux/subscriptions","organizations_url":"https://api.github.com/users/qlux/orgs","repos_url":"https://api.github.com/users/qlux/repos","events_url":"https://api.github.com/users/qlux/events{/privacy}","received_events_url":"https://api.github.com/users/qlux/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T18:59:40Z","updated_at":"2017-01-20T18:59:40Z","body":"Actually since there is some activity on this thread I will add a better method:\r\nIf you add a _tree-instance_ to the jsTree declaration:\r\n`<js-tree tree-id=\"dataTree\" tree-instance=\"myTreeInstance\" tree-plugins=\"........></js-tree>`\r\n\r\nyou can access it inside the scope as follow:\r\n\r\n`$scope.myTreeInstance.deselect_all();\r\n$scope.myTreeInstance.open_node(openFolder);\r\n$scope.myTreeInstance.select_node(selectNode);`"}}
{"actor":{"display_login":"qlux"}}