Could anyone show me TreeNode template that makes the whole node clickable (all the label text and icons) and uses the same expand function as the original behavior (when clicking on the icon to expand)? Or do you need to implement your own function doing the expansion onClick?
Asked
Active
Viewed 526 times
0
-
1Can you create a stackblitz for this, I might be able to help you that way. – Indrajeet Aug 14 '20 at 06:32
-
I've just reporposed PrimeNG sample https://stackblitz.com/edit/primeng-tree-demo-zskodv?file=src%2Fapp%2Fapp.component.ts My goal is to be able to click the the folder icon and label, not just the triangle – Destabilizator Aug 14 '20 at 11:05
1 Answers
0
I've used it in one of projects some time ago, if I recall correctly (nodeSelect) and (nodeExpand) was using almost the same logic so it expands on selection and expanstion.

reznov46
- 26
- 3