需要更改extjs网格动作列中图标的背景颜色 [英] Need to change the background color of icon inside extjs grid action column

查看:171
本文介绍了需要更改extjs网格动作列中图标的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  handler:function( grid,rowIndex,colIndex){
//需要更改删除图标的背景颜色
}


>

解决方案

这样做:

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


I need to change the background color of icon inside extjs grid action column on clicking that icon.

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

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

解决方案

this will do it:

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

这篇关于需要更改extjs网格动作列中图标的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆