mmiotk
05-30-2008, 08:19 AM
I've problem with displaying custom icons on the tree nodes. When I used gxt-1.0-beta2, my custom icons on tree nodes were displayed, but when I migrate my application to gxt-1.0-beta3, these icon's aren't displayed. Look at this screenshot:
http://sejmisja.pl/marcin/problem1.jpg
I set the icon to tree LEAF in the same way as to tree NODE.. by calling:
FOR NODE:
itemDict.setIconStyle("cbs-icon-sitemodel-dictionary");FOR LEAF:
i_item.setIconStyle("cbs-icon-sitemodel-dictionary-add");My CSS file contains:
.cbs-icon-sitemodel-dictionary {
background: url(icons/books_016.gif) no-repeat;
}
.cbs-icon-region-add {
background: url(icons/database_add.gif) no-repeat;
}When I don't call the method setIconStyle for tree NODE, gxt displays the default folder icon for it.
http://sejmisja.pl/marcin/problem1.jpg
I set the icon to tree LEAF in the same way as to tree NODE.. by calling:
FOR NODE:
itemDict.setIconStyle("cbs-icon-sitemodel-dictionary");FOR LEAF:
i_item.setIconStyle("cbs-icon-sitemodel-dictionary-add");My CSS file contains:
.cbs-icon-sitemodel-dictionary {
background: url(icons/books_016.gif) no-repeat;
}
.cbs-icon-region-add {
background: url(icons/database_add.gif) no-repeat;
}When I don't call the method setIconStyle for tree NODE, gxt displays the default folder icon for it.