I'm submitting a ...
[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports)
http://plnkr.co/edit/oMpfZQrOOw0myyCnytDw?p=preview
Current behavior
For the moment it is only possible to have some kind of double click tree expand/collapse when attaching it to the node template. This obligates users to double click on the text; they cannot double click expand by clicking the folder icon or other locations that do trigger a select event
Expected behavior
Double clicking a tree node expands/collapses it. Combined with checkbox selection mode, this feature will need a slightly different approach (e.g. only toggle checkboxes when the user clicks on the checkbox itself)
What is the motivation / use case for changing the behavior?
Having a built-in optional user-friendly behavior for expanding/collapsing the nodes of a tree. Pretty much every file explorer has this functionality.
Related to https://github.com/primefaces/primeng/issues/3807, but it was closed by the author.
Is double click still on the block as a new feature?
nearly 5 months ago, this was requested by a company that has uses their premium servicest. They were told they didn't have to purchase working hours for it, as this was going to be implemented soon.
Starting to doubt what "soon" means for primeng..
Are there any workarounds?
I have a quite similar feature request (may not be 100% the same as exposed in this issue):
To exand/collapse a tree branch, users need to click on the icon on the left of the node title. The selection of the node happens when clicking just on the node title or the checkbox. This may seem confusing to a user, as he would try to click on a title to expand the node but instead it is selecting it.
Im multiple selection mode, Wouldn麓t it be possible to just select/unselect nodes when clicking the box and keep the expand/collapse feature to the expand/collapse icons and/or node title click events?
At the moment my only workaround (not ideal) is to ignore the ngmodel [(selection)] and use a custom variable to keep what nodes are selected which is populated on nodeSelect/nodeUnselect events.
Most helpful comment
nearly 5 months ago, this was requested by a company that has uses their premium servicest. They were told they didn't have to purchase working hours for it, as this was going to be implemented soon.
Starting to doubt what "soon" means for primeng..