I am trying to add a custom icon near the text of a TreeNode, so the items could have a \"checked/unchecked\" state displa开发者_StackOverflowyed. I don\'t want to use a checkbox for that.
I\'m using a dojox.data.QueryReadStore to populate a dijit.Tree dynamically on expansion of each node.When each of the child TreeNodes is created, I\'d like to put a custom attribute on it.