7

我正在研究一些煎茶触摸教程,但我不知道如何在 TabPanel 视图中的选项卡左侧添加一个按钮。默认情况下,选项卡右侧会添加一个按钮。我尝试更改对齐和布局设置,但似乎没有任何效果。这是我要修改的简单代码

Ext.setup({

onReady: function() {
    new Ext.TabPanel({
        fullscreen: true,

        tabBar:{
            items:[{
                xtype: 'button',
                ui: 'round', 
                text: 'Round'
            }]
        },

        items: [{
            title: 'Tab 1',
            html: '1',

        }, {
            title: 'Tab 2',
            html: '2',

        }, {
            title: 'Tab 3',
            html: '3',

        }]
    });
}

});

4

1 回答 1

9

试试这个:

tabBar:{
   dockedItems:[{
       xtype: 'button',
       ui: 'round', 
       text: 'Round',
       dock: 'left'
   }]
},
于 2011-07-06T09:42:56.080 回答