PDA

View Full Version : Treenode change background color examples Checkbox Selection in a TreePanel



bobestjs
18 Jan 2011, 8:15 AM
This is the css to change the text for a treenode


<style type="text/css">
.complete .x-tree-node-anchor span {
text-decoration: line-through;
color: #777;

What is the css to change the background color for the node using the addClass method?

listeners: {
'checkchange': function(node, checked){
if(checked){
node.getUI().addClass('complete');
}else{
node.getUI().removeClass('complete');
}
}
},