1
我想附加一個自定義背景顏色的小方塊到一列基於列值。ExtJS 2.3列自定義渲染器追加boxcomponent
我定義了一個渲染功能列如:
this.addColorSqureToToTextColumn = function(value,meta,record,rowIndex,colIndex,store) {
var color = record.get("color");
return value; // how to append a boxcomponent with the background color after the value?
}
我知道我可以改變超常CSS的整列,並設置背景顏色,但我想有一個小的彩色正方形值旁邊。