0
我想用TabPanel和两张卡片在一个Carousel内进行查看。Sencha Touch Carousel和TabPanel
像这样:
var view = Ext.define("abril16.view.Main2", {
extend: 'Ext.tab.Panel',
requires: ['Ext.TitleBar', 'Ext.carousel.Carousel'],
config: {
tabBarPosition: 'bottom',
items: [{
title: 'Home',
iconCls: 'home',
styleHtmlContent: true,
scrollable: true,
layout: 'fit',
flex: 1,
items: {
docked: 'top',
xtype: 'titlebar',
title: 'Beetoom',
},
},
{
title: 'Discover',
iconCls: 'action',
scrollable: true,
items: [{
docked: 'top',
xtype: 'titlebar',
title: 'Select',
layout: 'fit',
flex: 1,
},
{
docked: 'top',
xtype: 'titlebar',
title: 'Discover',
},
{
xtype: 'carousel',
items: [{
xtype: 'checkboxfield',
name: 'Hola',
label: 'Hola'
},
{
xtype: 'checkboxfield',
name: 'Action',
label: 'Adventure'
}
]
}
]
}
]
}
});
的问题是,什么也没有发生在这里。没有语法错误,但没有布局显示,而是旋转木马在面板内部有空白背景。
非常感谢。