1. #1
    Ext JS Premium Member
    Join Date
    Jan 2011
    Location
    Austin, TX
    Posts
    112
    Vote Rating
    0
    zillabyte is on a distinguished road

      0  

    Default Container Image

    Container Image


    I have a form in which I used an xtype = container. I set the html property to an html image tag. When the form displays it shows the image. However, I want to change the image while the form is displayed when I select a different record in the grid. I can't seem to get this to work. I've tried several ways but nothing works. It looks like this property is actually set in the "initialConfig" when I view the object in the console. I could be going about this all wrong so any tips would be appreciated.

  2. #2
    Ext JS Premium Member
    Join Date
    Jan 2011
    Location
    Austin, TX
    Posts
    112
    Vote Rating
    0
    zillabyte is on a distinguished road

      0  

    Default Answer

    Answer


    Found out how to do this. Call the "update" method on the Container.

Similar Threads

  1. Replies: 6
    Last Post: 27 Aug 2012, 9:19 PM
  2. Container height not updated after image loaded in 0.98
    By joseeight in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 28 Oct 2010, 2:30 PM
  3. Set a image in middle and center in a Container
    By minlab in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 24 Sep 2010, 7:37 AM
  4. Resizable image extends container div edge
    By shuki in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 9 Apr 2008, 5:27 AM
  5. form container & background-image???
    By evilized in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 7 Nov 2007, 12:33 PM