[英]In the tabpanel of ExtJS 4, how to create parent tab includes 2 child tab
Ext.widget('tabpanel', {
width: 500,
activeTab: 0,
items: [{
title: 'Parent Tab 1',
items : [
Ext.widget('tabpanel', {
activeTab: 0,
items : [{
title: 'Child Tab 1',
bodyPadding: 10,
html : "My content of Child Tab 1 here"
},{
title: 'Child Tab 2',
bodyPadding: 10,
html : "My content of Child Tab 2 here"
}]
})
]
},{
title: 'Parent Tab 2',
bodyPadding: 10,
html : "Parent Tab 2 content here without child tabs"
}]
});
這是一個帶有父選項卡包含子選項卡的示例的小提琴:
http://jsfiddle.net/Q7f5q/200/
希望它是您想要的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.