mainmenutree.js.svn-base
来自「一个使用ssh+ext的例子。 希望对开发这个应用的人带来好处。仔细研究里面的」· SVN-BASE 代码 · 共 75 行
SVN-BASE
75 行
Ext.namespace("Neo");
Ext.namespace("Neo.frontdesk");
/*Neo.frontdesk.MainMenuTree = function(){
Neo.frontdesk.MainMenuTree.superclass.constructor.call(this);
}*/
Neo.frontdesk.MainMenuTree = Ext.extend(Ext.tree.TreePanel,{
/*Default*/
id:'mainMenu'
,title:'主菜单'
,region:'west'
,minSize: 175
,maxSize: 400
,width: 160
,border:true
,rootVisible: false
,lines: false
//,layout: 'fit'
,autoScroll: true
,root: new Ext.tree.TreeNode('MainMenu')
,collapseFirst: false
,initComponent: function(){
Ext.apply (this,{
});
Neo.frontdesk.MainMenuTree.superclass.initComponent.apply(this,arguments);
this.menuMain=this.root.appendChild(
new Ext.tree.TreeNode({
text:'Neo酒店'
//,cls:''
,expanded:true
})
);
this.menuReserv=this.menuMain.appendChild(
new Ext.tree.TreeNode({
text:'预定管理'//查看修改删除
//,cls:''
,expanded:false
})
);
this.menuGroup=this.menuMain.appendChild(
new Ext.tree.TreeNode({
text:'团队'//协议单位(团队)预定登记
//,cls:''
,expanded:false
})
);
this.menuGuestInfo=this.menuMain.appendChild(
new Ext.tree.TreeNode({
text:'客人信息'//查看删除修改
//,cls:''
,expanded:false
})
);
this.menuProtocol=this.menuMain.appendChild(
new Ext.tree.TreeNode({
text:'协议' //协议单位和个人VIP
//,cls:''
,expanded:false
})
);
}
,onRender:function(){
/*this.collapsible=true;
this.split=true
this.margins='5 0 5 5'
this.cmargins= '5 5 5 5'*/
Neo.frontdesk.MainMenuTree.superclass.onRender.apply(this,arguments);
}
/*,afterRender:function(){
}*/
});
Ext.reg('mainmenutree',Neo.frontdesk.MainMenuTree);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?