更新时间:2023-12-02 22:48:34
您需要使用带有卡片布局的面板:
You'll want to use a panel with card layout:
var card=new Ext.Panel({
layout:'card',
activeItem:0,
items:[ regionContent , newPanel ]
});
然后该面板可以进入您的视口.要在它们之间切换,您将使用以下内容:
That panel can then go inside your viewport. To switch between them you'll use something like this:
card.getLayout().setActiveItem(1);
看看两个卡片布局的工作示例:http://dev.extjs.com/deploy/dev/examples/layout-browser/layout-browser.html
Take a look at the two card layouts for working examples: http://dev.extjs.com/deploy/dev/examples/layout-browser/layout-browser.html