Skip to content

Instantly share code, notes, and snippets.

@haigopi
Created April 25, 2020 22:12
Show Gist options
  • Save haigopi/ac02a5fc035da8540c25c52b1fc63f91 to your computer and use it in GitHub Desktop.
Save haigopi/ac02a5fc035da8540c25c52b1fc63f91 to your computer and use it in GitHub Desktop.
Center ExtJS
Ext.define("AlliBilli.view.main.center.Center", {
extend: "Ext.tab.Panel",
requires: [
"Ext.ux.TabReorderer",
"AlliBilli.view.main.center.Dock",
"AlliBilli.view.main.center.CenterController",
],
xtype: "reorderable-tabs",
region: "center",
activeTab: 0,
width: "100%",
header: false,
controller: "center-controller",
plugins: {
tabreorderer: true,
},
defaults: {
bodyPadding: 10,
scrollable: true,
closable: true,
},
items: [
{
title: "Think Special",
iconCls: "fas fa-cat",
html:
"The tabs in this example are reorderable. Drag any tab to change the order.",
reorderable: false,
closable: false,
},
{
title: "Shout At Me",
reorderable: false,
iconCls: "far fa-clock",
closable: false,
},
{
title: "Tab 3",
},
{
title: "Non Reorderable",
html: "I can't be moved",
reorderable: true,
},
{
title: "Tab 4",
reorderable: true,
},
],
dockedItems: [new AlliBilli.view.main.center.Dock()],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment