Results 1 to 2 of 2

Thread: Change Image when a button is clicked

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default 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.

  2. #2
    Sencha Premium User twaindev's Avatar
    Join Date
    Sep 2009
    Posts
    224
    Answers
    15
    Vote Rating
    7
      0  

    Default

    Using Ext.Img you can change the source of the image inside the click handler of the button.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •