View Full Version : Tree Drag Icon

22 May 2007, 10:35 AM
I want to change the "leaf" icon for a tree when dragging. I have 3 different trees on my page and I want them all to have different icons.

I already added:

.parentClass .x-tree-node-leaf .x-tree-node-icon{
background-image: ...

for the three different trees. The trees themselves now display the proper icons, but when dragging they all display the default icon. Any ideas?

22 May 2007, 2:04 PM
that's because the tree node is not a child of .parentClass anymore while you drag it. So your CSS rules do not apply.

Try to explicitly add a CSS class to the nodes ("cls" config-option) and assign your background-image with the help of this class.

.your-class .x-tree-node-icon{
background-image: ...