angular-tree-control icon indicating copy to clipboard operation
angular-tree-control copied to clipboard

dirSelectable: false, but still get the children

Open ChaudhryAtif opened this issue 9 years ago • 1 comments

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.

ChaudhryAtif avatar Oct 08 '16 19:10 ChaudhryAtif

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)"

KristiyanYordanov avatar Aug 08 '17 09:08 KristiyanYordanov