The documentation for the TreeNode object lists a Config option named expandable
:
expandable : Boolean
If set to true, the node will always show a plus/minus icon, even when empty
I am creating a number of non-leaf objects the following way:
treeNodes[tag] = new Ext.tree.TreeNode({
text : tag,
leaf : false,
expanded : false,
expandable : true,
loaded : true
});
But after adding them to the root TreeNode the result is something like:
Which gets users complaining for having to double-click to expand a node. How can I get the plus/minus buttons as seen in this example?