In here I want to load my window with 'tab B' without rearranging order of tabs. Normally it load with 'tab A'.

Please resolve my issue.

here is my source code:

Ext.define('test.view.tView', {

        extend: 'Ext.tab.Panel',
        xtype: 'main',
        requires: [
            'Ext.TitleBar'
        ],
        config: {

            tabBarPosition: 'bottom',

            items: [
                {
                    title: 'tab A',
                    styleHtmlContent: true,
                    scrollable: true,

                },
                {
                    title: 'tab B',
                    pressed : true,
                    items: [{

                            xtype : 'button',
                            ui : 'round',
                            text : 'my'
                        }]
                },

                {
                    title: 'tab C',

                },
                {
                    title: 'tab D',

                }
            ]
        },
    });
有帮助吗?

解决方案

You can try to use activeItem config for your tab panel:

activeItem: 1,
tabBarPosition: 'bottom',
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top