mardi 18 mars 2014

Can I get the el to an item shown in a list

Hi,



I have a list using a template to show data from a store. Part of this data includes an image.

Initially a placeholder image is shown while the correct image is located via an ajax request.



What I would like to do is show a loading mask over each image while the request is loading the data.

How can I get a reference/el to the image on each row of the list, assuming that the image has been assigned an id?



Example template:


Code:



<img id="imgList" src="{defaultImageURL}" style="height:160px;vertical-align: top;">


Using Sencha Touch 2.3.1.



Thanks.




Aucun commentaire:

Enregistrer un commentaire