I am using the loadXML property, to dynamically add items to my tree based on items in a database. I would like each level that loads to have an icon based on what that item is (instead of where it is in the tree).
In the code that creates the XML i know what type of item i am adding, but have not found a way to identify an image with that item.
any ideas?
You can set item’s images directly in the xml. It can be done using following attributes:
specified in setImagePath(url) method)
...