【问题标题】:Change the loading tab of tabBar in Sencha更改 Sencha 中 tabBar 的加载选项卡
【发布时间】:2014-03-07 10:54:04
【问题描述】:

在这里,我想在不重新排列选项卡顺序的情况下使用“选项卡 B”加载我的窗口。通常它会使用“tab A”加载。

请解决我的问题。

这是我的源代码:

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',

                }
            ]
        },
    });

【问题讨论】:

    标签: extjs tabs sencha-touch loading tabbar


    【解决方案1】:

    您可以尝试为您的标签面板使用 activeItem 配置:

    activeItem: 1,
    tabBarPosition: 'bottom',
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-27
      • 2020-04-07
      • 1970-01-01
      • 2019-09-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多