PDA

View Full Version : How to change the Action Column's Icon when user Clicks the icon



asahoo
13 Nov 2014, 7:34 AM
Please see the below code

xtype:'actionColumn',
items:[
icon:'pathA',
handler:function(){
//Need to change the above icon to pathB and vice versa.
}
]


i know i can change the icon by using getClass(), but it will be on the basis of Row values. I am intrested in how to swap the icons, when user clicks one icon .

slemmon
17 Nov 2014, 1:59 PM
Hi,

You can use the getClass function to evaluate the value of a field on the record and use the handler to set that field.

As an example:
dhl