2

私はそのようなアイテムを持っています( 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) のようなタイトルの代わりに私のものが欲しい

ここに画像の説明を入力

タイトルを削除しようとしましたが、うまくいきません。その方法ありがとう:)。

4

1 に答える 1

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();
            }
        }
    ]
}
于 2013-06-15T03:14:17.647 に答える