2012-06-21 3 views
0

아코디언 레이아웃으로 설정된 항목으로 두 개의 격자 패널이있는 패널이 있습니다. 일부 조건에 따라 두 번째 격자 패널을 표시하거나 숨길 필요가 있습니다.Extjs의 아코디언 레이아웃 4

var chartStoreGridPanel = Ext.create('Ext.Panel', { 
       id: 'chartStoreGridPanel', 
       height: 200, 
       layout: 'accordion', 
       items: [chartStoreGridPanel1, chartStoreGridPanel2] 
      }); 

일부 조건에 따라 "chartGridPanel2"를 표시하거나 숨기려고합니다.

+0

두 그리드를? '국경'을 사용하고 싶지 않으십니까? – sha

+0

@sha 예 ... 국경을 사용하고 싶지 않습니다 .. –

답변

0

이 시도 : 아코디언에

items: [ 
     chartStoreGridPanel1, 
     <condition> ? chartStoreGridPanel2 : {} 
    ] 
관련 문제