效果图
添加属性:collapsible
Ext.define('V5.projectinfo.view.Left', {
extend : 'Ext.form.Panel',
collapsible: true,
columnLines : true,
views : ['V5.projectinfo.view.ProjectTree','V5.projectinfo.view.Grid'],
requires:['V5.projectinfo.view.ProjectTree'],
xtype : 'left',
items:[{
height:360,
xtype:'projecttree'
},{
xtype:'grid',
title:'通知',
tbar:[{
xtype : 'basebutton',
text : '上传文件',
btype : 'add'
}],
columns : {
defaults : {
flex : 1
},
items : [{
xtype:'rownumberer'
},{
text : '标题',
dataIndex : 'content'
}]
}
}]
});