Thanks!  The user-pruning feature is working.
 
Bill

________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Derrell Lipman
        Sent: Tuesday, October 30, 2007 5:28 AM
        To: qooxdoo Development
        Subject: Re: [qooxdoo-devel] treevirtual user prune branch
        
        
        On 10/30/07, Bill Adams <[EMAIL PROTECTED]> wrote: 

                I'd like to let the user prune the branch of tree, by
clicking a cell on
                the same branch.  Haven't figured it out...
                


        If you listen for the "changeSelection" event, the event data
you'll receive is an array of selected nodes.  Assuming that you've
specified single-selection mode, that array wiill contain a single node
object.  I'll call that node object 'obj'.  You can then call
tree.prune(obj.parentNodeId, true) to prune the parent and all of its
children.  If you wanted to prune all of the children but not the child
also, set the second parameter to false.
        
        Cheers,
        
        Derrell
        
        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to