extjs change grid cell background based on value

后端 未结 6 1439
刺人心
刺人心 2020-12-10 06:16

I applied a renderer to my grid-column, but the background color is not changing:

renderer: function(value, meta) {
    if (parseInt(value) > 0) {
                


        
6条回答
  •  有刺的猬
    2020-12-10 06:59

    Try

    .x-grid-cell.category-matching {
        background-color:green;
    }
    .x-grid-cell.category-not-matching {
        background-color:red;
    }
    

提交回复
热议问题