I am using a Dijit Tree, and I need to change the CSS style for a node when selected (focus). Lets imagine a node is black when "deselected", and it becames red when "selected" and viceversa.
What should I change in my code?
var tree = new Tree({
model: this._model,
showRoot: true,
autoExpand: true,
persist: false,
getLabel: function (item) {
return item.name;
},
onClick: function (item, node, event) {
businessLogic.goToView(item.id);
}