View Full Version : hiding open arrow for childless folder in TreePanel
17 Aug 2010, 4:43 AM
Hi. I'm using a TreePanel to create a tree of effectively folders, as I want each node in my hierarchy to be able to own other tree nodes. While this works fine if each node sets "leaf:false" it does mean that empty folders still show the 'open' arrow. Is there a way to hide this arrow for an empty folder? I still want to be able to drag folders into this folder, but it looks a bit silly if the user tries to open an empty folder.
17 Aug 2010, 5:20 AM
Configure your empty folder with expanded:true (and loaded:true if it's an AsyncTreeNode).
17 Aug 2010, 8:50 AM
Nope. If I add expanded:true or loaded:true (or both) it forces the node to be displayed as a leaf, even though i've specified leaf:false
Basically I want everything to be displayed as a folder, but for empty folders to have no open/close icon
3 Jun 2014, 10:31 PM
Is this problem already fixed?
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.