dhtmlXtree drag-and-drop

I want to have a tree where the leaves (end nodes) are empty folders. I’m not sure how to do that - can you please provide me a small snippet from an xml file that has the leaves as empty folders - these folders can be opened and closed and have documents dragged to them. Thanks.



John

The tree can’t have empty folders, but the tree will automatically change leafs to folders if item was added|draged to it.
So you need not do any special customization except next command , which will cause leaf items look as folders.

    var tree = new …
    tree.setStdImages(“folderClosed.gif”,“folderOpen.gif”,“folderClosed.gif”);