[英]Trying to add tabbed pane in tabbed pane in ExtJS
This is my window which displays a tabbed pane. 这是我的窗口,其中显示一个选项卡式窗格。 Inside one of the tabs I want another tabbed pane (with two tabs: tab3, and tab4).
在一个选项卡中,我想要另一个选项卡式窗格(带有两个选项卡:tab3和tab4)。 I thought this is how you would do it.
我以为这就是你要怎么做。
Ext.create('Ext.window.Window', {
title: 'Package Details for ' + record.data.name,
height: 200,
width: 400,
layout: 'fit',
items:{
xtype: 'tabpanel',
items: [{
title: 'tab1',
xtype: 'tabpanel',
items: [{
items: [{
title: 'tab3'
},{
title: 'tab4'
}]
}]
},{
title: 'tab2'
}]
}
}).show();
But that seems to be wrong because this is what I see : 但这似乎是错误的,因为这是我所看到的:
Anyone know what i am doing wrong? 有人知道我在做什么错吗?
Don't nest items of tabpanel in tab1 in another items. 不要在其他项目中将tabpanel的项目嵌套在tab1中。 That's called overnesting Evan mentions.
这就是所谓的过分提及Evan。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.