| Issue 197: | new select mode to allow for all children to be selected but not the branch | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What new or enhanced feature are you proposing? right now, if you select all children of a branch, the branch then gets selected. If you try to unselect the branch, then all the children get unselected as well. It would be nice to be able to select all children but not the branch automatically. What goal would this enhancement help you achieve? I could delete all children from dynatree without deleting the parent.
Oct 6, 2013
Closing 'Waiting' issues without timely answer
Status:
Done
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|
> right now, if you select all children of a branch, the branch then gets selected. > If you try to unselect the branch, then all the children get unselected as well. This only happens in select mode 3. > It would be nice to be able to select all children but not the branch automatically. You can use the visit() API method to call a function for every child node: node.visit(fn, includeSelf) In order to select or otherwise modifiy the children. I don't know how this is related to deleting of nodes, but you could use node.removeChildren() for this. You may then implement event handlers (onKeydown, onClick, onDblClick, ...) to provide a user interface for your functionality.