PDA

View Full Version : changing button iconCls from inside handler



whalethewise
17 Jul 2012, 11:21 AM
Hi

I am trying to change iconCls for button that just clicked in handler (to show some kind of 'loading' icon telling user that something going on). But nothing changes until handler is finished. Any advise would be greatly appreciate. setLoading () looks ugly on button.

scottmartin
19 Jul 2012, 10:44 AM
Are you loading an AGIF in the button?

Scott.

whalethewise
19 Jul 2012, 11:09 AM
Yes. I am trying to use extjs\resources\themes\images\default\tree\loading.gif