簡體   English   中英

如何根據ext js網格中另一個單元格的值向單元格添加類

[英]How to add class to a cell depending on the value of another cell in ext js grid

這是我想嘗試的方法,我想根據同一行中另一列的值突出顯示一個單元格。 我知道renderer函數可以在render上設置列的樣式,但是可以訪問另一個列嗎?

渲染器具有一組參數。 第三個參數是記錄。

renderer: function(value, metaData, record){
    var anotherColumnValue = record.get('anotherColumnDataIndex');
    // ...
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM