点击该图标后,我需要更改extjs网格操作列中图标的背景颜色。
handler: function(grid, rowIndex, colIndex) {
//Need to change the background color of the delete icon
}
答案 0 :(得分:1)
这样做:
handler: function(grid, rowIndex, colIndex) {
Ext.query('td.x-action-col-cell img',grid.getNode(rowIndex))[0].style.setProperty('background-color','#000')
}