2012-07-05 73 views
0

我想显示一个网格,但在List of customersCustomer Id, active, firstname last name, email address之间添加一个面板。在标签面板中添加一个面板

我需要在这两个组件之间添加一个面板。并且在该面板中,我将拥有不同的UI元素。我怎样才能做到这一点 ?

enter image description here

+1

需要更多的ExtJS的标签.. – Ben

+1

没有帮你吗? –

+0

为什么这么多extjs标签? extjs3与你的问题甚至没有关系。 – Ben

回答

2

好吧,我相信你只是一个的costumers的标题列表格,最简单的方法是有一个面板和一个网格(网格,没有标题)与标题另一个面板。

{ 
    xtype: 'panel', 
    title: 'List of customers', 
    layout:'border', 
    items: [ 
     { 
     //the panel you want 
     xtype: 'panel', 
     region: 'north', 
     height: 100, 
     }, 
     { 
      //your current grid without a title 
      xtype: 'gridpanel', 
      region: 'center', 
      height: 300, 
     } 
    ] 
} 
1

我需要添加面板,标题为“List if Customers”和垂直布局。在它中你需要添加两个项目:你的新面板和那个网格(没有标题)。你会得到你想要的。

{ 
    xtype: 'panel', 
    layout: { 
     type:"vbox", 
     pack:"start", 
     align:"stretch"} 
    title:"List of Customers", 
    items: [ ... your new panel and grid .. ] 
}