1
我有一個手風琴佈局,其中有3個面板部分。EXTJs將項目添加到動態數組中的面板
我想使用其中一個部分來顯示過去90天的月份。這可能在3-5個月之間。我有一個計算這些個月,將它們存儲在類似陣列功能:基於此數組中的值
months["May", "June, "July", "August"]
,我想這些顯示爲手風琴面板鏈接。我不知道如何將這些項目動態添加到手風琴部分。這些鏈接將用於將網格加載到整個邊框佈局的Container中。
這是我的手風琴設置:
title : 'Navigation',
region : 'west',
collapsible : false,
margins: '100 0 0 0',
cmargins: '5 5 0 0',
width: 175,
minSize: 100,
maxSize: 150,
layout: {
type: 'accordion',
animate: true
},
items:[{
id:'main'
,title:'Summary'
,collapsed:false
,frame:true
//captures the expand function to call the getgrids functionality
//don't want it to expand as it only displays 1 thing
,expand : function(){
getGrids();
}
},
{
id:'month'
,title:'Month View'
,collapsed:false
,frame:true
,items:[{
}]
},{
id:'search'
,title:'Search'
,html: 'Search'
,collapsed:true
,frame:true
}]
},