tab-win-override.js
来自「Extjs写的一个桌面应用。。功能很强大」· JavaScript 代码 · 共 50 行
JS
50 行
/* Override the module code here.
* This code will be Loaded on Demand.
*/
Ext.override(QoDesk.TabWindow, {
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow(this.moduleId);
if(!win){
var winWidth = desktop.getWinWidth() / 1.1;
var winHeight = desktop.getWinHeight() / 1.1;
win = desktop.createWindow({
id: this.moduleId,
title: 'Tab Window',
width: winWidth,
height: winHeight,
iconCls: 'tab-icon',
shim: false,
constrainHeader: true,
layout: 'fit',
items:
new Ext.TabPanel({
activeTab:0,
items: [{
autoScroll: true,
title: 'Tab 1',
header: false,
html: '<p>Something useful would be in here.</p>',
border: false
},{
title: 'Tab 2',
header:false,
html: '<p>Something useful would be in here.</p>',
border: false
},{
title: 'Tab 3',
header:false,
html: '<p>Something useful would be in here.</p>',
border:false
}]
}),
taskbuttonTooltip: '<b>Tab Window</b><br />A window with tabs'
});
}
win.show();
}
});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?