Extjs - 工具栏而不是标题(启用选项可折叠)

fre*_*yle 2 extjs toolbar extjs4 extjs4.1

我有一个像这样的项目(JSFiddle演示):

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

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

在此输入图像描述

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

Gre*_*ake 6

摆脱标题并将相同的折叠工具添加到工具栏:

{
    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();
            }
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)