需要在extjs grid action列中更改图标的背景颜色

时间:2014-04-17 01:00:43

标签: extjs gridpanel

点击该图标后,我需要更改extjs网格操作列中图标的背景颜色。

 handler: function(grid, rowIndex, colIndex) {
                   //Need to change the background color of the delete icon
                }

http://jsfiddle.net/mohansee/6afxy/2/

1 个答案:

答案 0 :(得分:1)

这样做:

handler: function(grid, rowIndex, colIndex) {
    Ext.query('td.x-action-col-cell img',grid.getNode(rowIndex))[0].style.setProperty('background-color','#000')
}