How can I change the tree node icons on a per node basis when when the node supports expand/collapse?
For example, I can set the expand/collapse icons globally for the tree using this CSS:
#reports-tree .x-tree-icon-parent
{
background-image: url('../images/tree/folder_closed.png');
background-repeat: no-repeat;
}
#reports-tree .x-grid-tree-node-expanded .x-tree-icon-parent
{
background-image: url("../images/tree/folder_opened.png");
background-repeat: no-repeat;
}
I can also set individual leaf
icons using iconCls
as standard.
However, in some cases I have non-leaf nodes that I want to give a custom icon and NOT use the normal expand/collapse icons.