2014-03-19 41 views
0

我有一个手风琴面板,可容纳3个GridPanels。当页面第一次显示时,前两个面板被展开,最后一个面板被折叠。ExtJS手风琴GridPanels不同高度

是否有可能使第一个GridPanel比其他两个稍微大一些?

@lmno:

xtype: 'container', 
flex: 2, 
layout: { type: 'accordion', border: false, multi: true }, 
items: [ 
    { xtype: 'myGrid' }, 
    { xtype: 'pendingGrid' } 
] 

可以的Ext.layout.container.Accordionmulti属性设置为true使多个手风琴项目一次打开。

之后,你可以玩collapsedcollapsible网格属性。

+0

你有你的手风琴与2开放面板的例子。我的印象是手风琴在打开时关闭了其他容器。 – lmno

+0

是的,我明天会发布,我刚刚离开工作。 – hermann

+0

@lmno检查出来 – hermann

回答

0

这是专门为当你想实现这一点,但也有多种:真

layout: { 
       type: 'accordion', 
       animate: true, 
       multi: true, 
       fill: false 
      }, 
      items: [{ 
       title: 'Panel 1', 
       html: 'Panel content!', flex: 2 // or height 
      }, { 
       title: 'Panel 2', 
       html: 'Panel content!', flex: 1 
      }, { 
       title: 'Panel 3', 
       html: 'Panel content!', flex: 1 
      }], 

从煎茶论坛注意到https://www.sencha.com/forum/showthread.php?283045-How-to-have-Grids-under-accordion-panel-with-different-height (发布的代码反正在情况下,链接变成打破未来。)