0
如何将字体颜色添加到dojo datagrid中的单元格?我需要动态改变颜色(取决于它获得的值)。我不想使用从格式化程序方法返回的HTML标记。Dojo datgrid单元格字体颜色
例如, '数' 应该较小,如果大于0是红色和蓝色大于0
布局,
number{
formatter : format
}
方法,
var format(value){
if(value<0){
// what should to returned to change font color without html tag?
}else if(value>0){
// what should to returned to change font color without html tag?
}
}
我不明白,你想使用html标签吗? – perissf
非常抱歉让人困惑 – john