Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html ExtJS-行渲染器-如果单元格具有特定值,则高亮显示整行_Html_Extjs - Fatal编程技术网

Html ExtJS-行渲染器-如果单元格具有特定值,则高亮显示整行

Html ExtJS-行渲染器-如果单元格具有特定值,则高亮显示整行,html,extjs,Html,Extjs,如果列单元格值>5000,我想突出显示整行。现在我只能突出显示该单元格 网格列渲染器: renderer:function(val_, meta_, rec_) { if(val_> 5000) { meta_.style = "background-color:red;"; } } 设置(在网格上)而不是列渲染器: renderer:function(val_, meta_, rec_) { if(val_> 5000) { meta_.sty

如果列单元格值>5000,我想突出显示整行。现在我只能突出显示该单元格

网格列渲染器:

renderer:function(val_, meta_, rec_) {
  if(val_> 5000) {
     meta_.style = "background-color:red;"; 
   }
}
设置(在网格上)而不是列渲染器:

renderer:function(val_, meta_, rec_) {
  if(val_> 5000) {
     meta_.style = "background-color:red;"; 
   }
}
重写此函数以在执行过程中将自定义CSS类应用于行 翻译此函数应返回CSS类名(或空) 将添加到行的包装元素的字符串“”

例如:

viewConfig: {
    getRowClass: function(record, rowIndex, rowParams, store){
        return record.get("someField") > 5000 ? "row-highlight" : "";
    }
}

有没有不依赖CSS直接在代码中执行此操作的方法?