Results 1 to 4 of 4

Thread: add tabpanel as google chrome

  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default add tabpanel as google chrome

    Hi,

    is there a plugin for adding new tabs like google chrome for example, I have not found ...
    In fact, I would have a blank tab and when clicked it adds a new tab and and so one.

    Thanks for your help

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default

    in fact the solution is the next :

    Code:
     items = [...,
        {
          xtype: 'container',
          title: '    ',
          listeners: {
            activate: function ()
            {
              var me = this.up( 'main' );
              me.initTab = false;// add liste
              me.insert( me.items.getCount() - 1, yourPanelToAdd );
              
            }
          }
        }
        ];
    and the listener in a tabPanel

    Code:
     listeners: {
        add: function ( tab, component, index, eOpts )
        {
          if ( tab.initTab == false ) tab.setActiveTab( component );
        }
      }

    Thanks

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Sounds like you got your answer? Thanks for sharing your solution with the community.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default

    ok but how

Posting Permissions

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