PDA

View Full Version : How to use ProgressBar while Img component is loading image?



Doc Zhivago
23 Oct 2012, 2:46 AM
How to use ProgressBar while Img component is loading image?
setLoading method is not work correctly for me.
Can be an example of the code?

mitchellsimoens
25 Oct 2012, 6:24 AM
The img tag fires a load event so you would have to override the getElConfig method of Ext.Img to add in a load listener.

Should also fire an error event.