⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tab-win-override.js

📁 Extjs写的一个桌面应用。。功能很强大
💻 JS
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -