0
我不知道這是否是正確的論壇來問這個問題,但我想我會給它一個去 - 沒有人使用Pentaho Ctools?我試圖將條件格式應用到我的表組件的第8列,但到目前爲止還沒有。任何想法將不勝感激!ctools表格組件條件格式
function f(){
this.setAddInOptions("numeric","formattedText",function(statusReport){
var days = statusReport.value;
if(statusREport.colIndex == 8)
if(days <=30){
return { textFormat: function(v, st) { return "<span style='color:green'>"+v+"</span>"; } };
}
else {
return { textFormat: function(v, st) { return "<span style='color:red'>"+v+"</span>"; } };
}
});
}