Jul
04-06-2007, 07:57 PM
My AsyncTreeNodes are changing their icons dynamically by sending back different class names with the cls: attribute. It's been working great. My CSS code for each custom icon looks like this:
.treemenu-user-node .x-tree-node-icon {
background:transparent url(/icons/User.gif) repeat scroll 0%;
}
However, I continued to tweak my TreePanel design a bit further and found a problem. I wanted to also control the folder icons. FireBug revealed the css classes to use (or so I thought) and I wrote a pair of css classes to deal with closed and open states. Here's what those look like:
.treemenu-blue-folder .x-tree-node-collapsed .x-tree-node-icon {
background:transparent url(/icons/FolderClosed.gif) repeat scroll 0%;
}
.treemenu-blue-folder .x-tree-node-expanded .x-tree-node-icon {
background:transparent url(/icons/FolderOpen.gif) repeat scroll 0%;
}
Those are being ignored no matter what I seem to do. The default folder icons are used. Any suggestions on what's wrong?
Thanks,
Jul
.treemenu-user-node .x-tree-node-icon {
background:transparent url(/icons/User.gif) repeat scroll 0%;
}
However, I continued to tweak my TreePanel design a bit further and found a problem. I wanted to also control the folder icons. FireBug revealed the css classes to use (or so I thought) and I wrote a pair of css classes to deal with closed and open states. Here's what those look like:
.treemenu-blue-folder .x-tree-node-collapsed .x-tree-node-icon {
background:transparent url(/icons/FolderClosed.gif) repeat scroll 0%;
}
.treemenu-blue-folder .x-tree-node-expanded .x-tree-node-icon {
background:transparent url(/icons/FolderOpen.gif) repeat scroll 0%;
}
Those are being ignored no matter what I seem to do. The default folder icons are used. Any suggestions on what's wrong?
Thanks,
Jul