extjs一个Panel两个grid,上下承接的

2024-12-23 21:52:12
推荐回答(2个)
回答(1):

用vbox布局,当然,border布局也可以
Ext.create('Ext.Panel', {
width: 500,
height: 400,
title: "VBoxLayout Panel",
layout: {
type: 'vbox',
align: 'center'
},
renderTo: document.body,
items: [{
xtype: 'panel',//你要加的gridpanel
title: 'Inner Panel One',
width: 250,
flex: 2
},
{
xtype: 'panel',,//你要加的gridpanel
title: 'Inner Panel Two',
width: 250,
flex: 4
]
});

回答(2):

什么意思?说详细点