violinista
21 May 2007, 7:35 AM
Hello,
I have a problem with styling my tree, which is made asynchronously: there is "iconCls":"someCustomClass" parameter with every leaf, and it is applyied with IMG tag in tree leaves (checked in source code). The CSS file for styling tree is:
.someCustomClass {
background-image: url("images/icons/someIcon.png");
}
... and it does not working. The path to icon is correct. Also tried:
.someCustomClass .x-tree-node-icon {
background-image: url("images/icons/someIcon.png");
}
And it is again not working - it again displays default 'leaf.gif' image. I am using FF2.0.
The question is: how can I modify this CSS file to get desired behavior of custom leaf image?
I have read a lot of threads but I could not realize what style combination is working. Please help, as I am not a CSS expert. Only sample of CSS file for styling leaves is needed.
Thank you all in advance. And thank you, JSext team for providing such a powerful library.
I have a problem with styling my tree, which is made asynchronously: there is "iconCls":"someCustomClass" parameter with every leaf, and it is applyied with IMG tag in tree leaves (checked in source code). The CSS file for styling tree is:
.someCustomClass {
background-image: url("images/icons/someIcon.png");
}
... and it does not working. The path to icon is correct. Also tried:
.someCustomClass .x-tree-node-icon {
background-image: url("images/icons/someIcon.png");
}
And it is again not working - it again displays default 'leaf.gif' image. I am using FF2.0.
The question is: how can I modify this CSS file to get desired behavior of custom leaf image?
I have read a lot of threads but I could not realize what style combination is working. Please help, as I am not a CSS expert. Only sample of CSS file for styling leaves is needed.
Thank you all in advance. And thank you, JSext team for providing such a powerful library.