Need to change the background color of icon inside extjs grid action column

StackOverflow https://stackoverflow.com/questions/23122820

  •  05-07-2023
  •  | 
  •  

سؤال

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')
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top