Results 1 to 3 of 3

Thread: button in the accodion layout

  1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    48
    Vote Rating
    0
      0  

    Default button in the accodion layout

    Hi,


    I had created a border layout and included accordion layout in the west region with 3 pannels.
    Now I want to add a button in the pannel such a way when I click that button it has to open another pannel in the same accodion layout..

    Can anyone help me in this ...

    Here is my code..

    Code:
    Ext.ns('test');
    test.app = function(){
          return{
      init: function(){
           var viewport = new Ext.Viewport({
       layout: 'border',
         items: [
      { 
           region: 'west',
           layout:'accordion',
           width:300,
           items:[{
           title: 'pannel1',  
           autoLoad: 'sw.txt'
          },{   
           title: 'pannel2',  
           autoLoad: 'dsa.txt'
        },{
         title:'pannel3',
      autoLoad:'oops.txt'
              }]   
       
        },
    return viewport
      }
     };
     }();
    Kind Regards
    leela

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      0  

    Default

    Leela, setup a button in the tbar or bbar that adds the item to the accordion layout panel.

    See: http://www.extjs.com/learn/Ext_2_Ove...ontainer_Model

  3. #3
    Ext User
    Join Date
    Mar 2010
    Posts
    48
    Vote Rating
    0
      0  

    Default

    Hi,


    I want to add a button in one of the pannel in the accordion layout....
    can u plz send me the modified code ....
    Kind Regards
    leela

Posting Permissions

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