2017-10-12 16 views

答えて

0

TabCloseMenuプラグインを使用してexample fiddleです。 tabpanelにプラグインを含めると、タブヘッダーを右クリックすると、close,close allおよびclose otherの機能が表示されます。

Ext.define('ExampleTabs', { 
    extend: 'Ext.tab.Panel', 
    xtype: 'reorderable-tabs', 

    requires: [ 
     'Ext.ux.TabCloseMenu', 
     'Ext.ux.TabReorderer' 
    ], 

    plugins: [ 
     'tabreorderer', 
     'tabclosemenu' 
    ], 

    defaults: { 
     closable: true 
    }, 

    items: [{ 
     title: 'Tab 0 - fixed', 
     html: "Cannot reorder or close this", 
     reorderable: false, 
     closable: false 

    }, { 
     title: 'Tab 1', 
     html: 'Tab 1' 
    }, { 
     title: 'Tab 2', 
     html: 'Tab 2' 
    }, { 
     title: 'Tab 3', 
     html: 'Tab 3' 
    }, { 
     title: 'Tab 4', 
     html: 'Tab 4' 
    }], 

}); 
+0

感謝しました:) –

関連する問題