-
Unanswered: Change Image when a button is clicked
Unanswered: Change Image when a button is clicked
I have an image and a button within a panel.
When the button is clicked I would like my image to be replaced with another image at random based on an array of stored images.
Im stuck on implementing a change image function within the button.
Assistance would be appreciated.
-
Ext JS Premium Member
Using Ext.Img you can change the source of the image inside the click handler of the button.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us