sencha-touch - Sencha Touch TabBar 添加选项卡左侧的按钮

标签 sencha-touch tabbar tabpanel

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

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

        }]
    });
}

});

最佳答案

尝试这个:

tabBar:{
   dockedItems:[{
       xtype: 'button',
       ui: 'round', 
       text: 'Round',
       dock: 'left'
   }]
},

关于sencha-touch - Sencha Touch TabBar 添加选项卡左侧的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6590110/

相关文章:

iOS 7 : Views change sizes when using TabBar and Autolayout

JavaFX TabPane 排序选项卡造成严重破坏

iphone - HTML 视频只能通过耳机播放声音 -iOS?

django - 在移动 Web 应用程序中存储身份验证 token 的最安全方式

css - Sencha 复杂布局

ios - 如何在 Swift 中更新底部 TabBar 而不进行导航?

iphone - 在 IOS 的 Cocoa Touch Tab Bar 应用程序前面添加登录屏幕

performance - 如何在 sencha touch 2 中动态创建/销毁选项卡

ExtJS4 - 扩展 Ext.tab.Panel 以防止设置高度值

javascript - Sencha 触摸 : how to get config from tpl?