【问题标题】:Extjs - Toolbar instead of title (enable option collapsible)Extjs - 工具栏而不是标题(启用选项可折叠)
【发布时间】:2013-06-15 02:31:30
【问题描述】:

我有一个这样的项目 (JSFiddle Demo):

{
    region: 'west',
    title: 'Instead of toolbar',
    collapsible: true,
    width: 250,
    tbar: [{
        xtype: 'button',
        text: 'Button',
        style: {
            background: 'green'
        },
        handler: function() {}
    }]
}

我想要我的tbar,而不是像 (1->2) 这样的标题

我试图删除标题,但它不起作用。怎么做谢谢:)。

【问题讨论】:

    标签: extjs extjs4 extjs4.1 toolbar


    【解决方案1】:

    去掉表头,在工具栏中加入同样的折叠工具:

    {
        region: 'west',
        collapsible: true,
        header: false,
        width: 250,
        tbar: [
            {
                xtype: 'button',
                text: 'Button',
                style: {
                    background: 'green'
                },
                handler: function (){}
            },
            '->',
            {
                type: 'left',
                xtype: 'tool',
                handler: function(t) {
                    this.up('panel').collapse();
                }
            }
        ]
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多