angular-tree-control
angular-tree-control copied to clipboard
dirSelectable: false, but still get the children
If I want to open the directory on single click, I have to set dirSelectable to false. Doing so stops my access to the children of the selected directory because 'on-selection' event is not fired.
Is it possible to not allow selection of directory, but still be able to get the children?
My scenarios is, when a directory is clicked, I show all of its children in a table. If I set dirSelectable to false, then I don't have access to the children to show.
go to angular-tree-control.js and make a change so this div use
selectNodeHead method
<div class="tree-label {{options.labelClass}}" ng-class="[selectedClass(), unselectableClass()]" ng-click="selectNodeHead(node)"