Hi,

I need to be able to show both files and folders on the rigth pane
("desktop"). How can I merge data.getFiles() with data.getFolders()?
Should I create a new object of some sort?

// Bind desktop to tree
this.__treeController.bind("selection[0]", this.__desktopController,
"model", {
        converter : function(data) {
                if(!data) return;

                if(data.getFiles && data.getFolders) {
                                // Return both files and folders
                }
                elseif(data.getFiles) {
                        return data.getFiles();
                }
                else if(data.getFolders) {
                        return data.getFolders();
                }
                // No files or folders, content should be empty
                that.__desktopController.resetModel();
                return;
        }
});

Yours sincerely
Rickard
-- 
View this message in context: 
http://n2.nabble.com/Bind-tree-controller-to-a-composite-container-tp4255140p4420343.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to