set the color of specified row headers from code (not style!!)
How can i set the row header colors programaticaly?
I tried this:
function myColor(p){
var value = this.getProperty('item/index');
try{return getRowColor(value);}catch(error){}
return this.getProperty('background');
}
function myHeight(){
var value = this.getProperty('item/index');
try{return getRowHeight(value);}catch(error){}
return this.getProperty('height');
}
this.getTemplate('row', 0).setStyle('background-color', myColor);
this.getTemplate('left/item', 0).setStyle('background-color', myColor);
this.getTemplate('row', 0).setStyle('height', myHeight);
this.getTemplate('left/item', 0).setStyle('height', myHeight);
Only the heigth works. Why?
Tell me why????????????????????
I tried this:
function myColor(p){
var value = this.getProperty('item/index');
try{return getRowColor(value);}catch(error){}
return this.getProperty('background');
}
function myHeight(){
var value = this.getProperty('item/index');
try{return getRowHeight(value);}catch(error){}
return this.getProperty('height');
}
this.getTemplate('row', 0).setStyle('background-color', myColor);
this.getTemplate('left/item', 0).setStyle('background-color', myColor);
this.getTemplate('row', 0).setStyle('height', myHeight);
this.getTemplate('left/item', 0).setStyle('height', myHeight);
Only the heigth works. Why?
Tell me why????????????????????
holyshitlover
October 14,