小编MrG*_*een的帖子

Sencha Touch TabBar添加按钮左侧的按钮

我正在研究一些sencha触摸教程,我无法弄清楚如何在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',

        }]
    });
}
Run Code Online (Sandbox Code Playgroud)

});

tabpanel tabbar sencha-touch

7
推荐指数
1
解决办法
5802
查看次数

标签 统计

sencha-touch ×1

tabbar ×1

tabpanel ×1