📄 webpage.js
字号:
Ext.ns('WebPage'); WebPage = function(config) { Ext.apply(this, config, { autoRender:true ,autoTitle:true ,langCombo:false ,ctCreate:{tag:'div', id:'ct-wrap', cn:[{tag:'div', id:'ct'}]} }); if(this.autoRender) { this.render(); }};Ext.override(WebPage, { render:function() { var body = Ext.getBody(); var dh = Ext.DomHelper; // create wrap and container this.wrap = dh.insertFirst(body, this.ctCreate, true); this.ct = Ext.get('ct'); if(this.width) { this.ct.setWidth(this.width); } this.center = dh.append(this.ct, {tag:'div', id:'center'}, true); // theme select combo 主题 //var themeCt = this.north.createChild({tag:'div', id:'themect', cls:'x-hidden'}); //this.themeCombo = new Ext.ux.ThemeCombo({ // renderTo:themeCt //,width:themeCt.getWidth() //}); if(this.centerContent) { this.center.appendChild(this.centerContent); this.centerContent = Ext.get(this.centerContent).removeClass('x-hidden'); } }});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -