Results 1 to 5 of 5

Thread: Conditions in Panel

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
      0  

    Default Conditions in Panel

    Hi,

    I wanted to show two buttons called "A" and "B" in a simple EXT js panel. When a button "A" is clicked, i need to show an IFrameA and when the button "B" is clicked i need to show IFrameB.

    How can i add conditions here. Could any one help me on this?

    var panel = new Ext.Panel({
    renderTo: '#divName#',
    html : "<iframe src="http://www/google.com" width='800' height='300'></iframe>"
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    What framework and version are you using?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
      0  

    Default

    EXT JS 3.4

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    549
    Vote Rating
    54
      0  

    Default

    On the button handlers, simply use the panel's update method:
    http://docs.sencha.com/ext-js/3-4/#!...-method-update

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
      0  

    Default

    I resolved it. Thank you

Tags for this Thread

Posting Permissions

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