| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- Ext.define('erp.view.common.main.TreeTabPanel',{
- extend: 'Ext.tab.Panel',
- alias: 'widget.erpTreeTabPanel',
- id: 'tree-tab',
- region: 'west',
- split: true,
- collapsible :true, //可以伸缩
- toggleCollapse: function() {
- if (this.collapsed) {
- this.expand(this.animCollapse);
- } else {
- this.title = $I18N.common.main.navigation;
- this.collapse(this.collapseDirection, this.animCollapse);
- }
- return this;
- },
- //hideCollapseTool :true,
- //header :false,
- title: '<font color=#A1A1A1;>' + $I18N.common.main.navigation + '</font>',
- /* plugins:[{
- ptype: 'tabcollapsed',
- }],*/
- width : '20%',
- minSize : 130,
- maxSize : 300,
- defaults: {
- autoScroll:true
- },
- activeTab: 0,
- border: false,
- items: [{
- title: $I18N.common.main.integrationManage,
- xtype: 'erpTreePanel'
- },{
- title: $I18N.common.main.navigationchart,
- xtype:'erpFlowPanel'
- }],
- initComponent : function(){
- this.callParent(arguments);
- }
- });
|