1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    sirkis is on a distinguished road

      0  

    Default Unanswered: TabPanel and FormPanel

    Unanswered: TabPanel and FormPanel


    I have a fullscreen Ext.Panel with card layout.

    It contains a nestedlist with cards.

    Each card contains a TabPanel.

    The TabPanel contains an Ext.form.FormPanel.

    screen.png


    Problem is that i can't display the tab content. Nestedlist switch correctly between card but nothings appears under TabBar..


    TabPanel generation...
    Code:
    Ext.define("Lahoco.view.Page", {
        extend : 'Ext.tab.Panel',
        fullscreen: true,
        initialize: function(){
            var tab = 1;
            var panel = Ext.create('Ext.form.FormPanel',{
                title: "Page "+tab,
                items: [
                {
                    xtype: 'textfield',
                    name : 'name',
                    label: 'Name'
                },
                {
                    xtype: 'emailfield',
                    name : 'email',
                    label: 'Email'
                },
                {
                    xtype: 'passwordfield',
                    name : 'password',
                    label: 'Password'
                }
                ]
            });
            
            this.add(panel);
    }});
    Thx for your help ! ; )

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Answers
    102
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    inside of initialize, add this.callParent(); under this.add();

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Location
    Canada
    Posts
    14
    Answers
    1
    Vote Rating
    0
    samiswt is on a distinguished road

      0  

    Default Did you forget to renderTo ur tab?

    Did you forget to renderTo ur tab?


    I supposed to renderTo your Tab to an dom.element.