pcirella / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

new select mode to allow for all children to be selected but not the branch #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by oll...@gmail.com on 11 May 2011 at 8:48

GoogleCodeExporter commented 9 years ago
> 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.

Original comment by moo...@wwwendt.de on 12 May 2011 at 6:32

GoogleCodeExporter commented 9 years ago
Closing 'Waiting' issues without timely answer

Original comment by moo...@wwwendt.de on 6 Oct 2013 at 2:09

GoogleCodeExporter commented 9 years ago
Cleanup Scrumboard

Original comment by moo...@wwwendt.de on 2 May 2014 at 7:47