我是Sencha Touch 2的新手,希望在頁面頂部放置一個HTML標籤,並在其下面放置一個xtype:formpanel。任何線索如何做到這一點?我必須將這兩個元素放在另一個xtype中嗎?HTML上面的xtype:'formpanel'在Sencha Touch 2中?
Thx提前。
的代碼如下所示(一些東西,當然之前的代碼來):
xtype: 'carousel',
direction: 'horizontal',
//Will be applied to every object in the array by default
defaults: {
styleHtmlContent: 'true',
scrollable: true
},
items: [
{
cls: 'configurator-item',
html: '<h2>Demo heading</h2>',
xtype: 'formpanel',
items: [
{
xtype: 'fieldset',
title: 'Demo',
defaults: {
//labelWidth: '30%',
autoCapitalize: true,
//required: true,
clearIcon: true
},
items: [
{
xtype: 'textfield',
name: 'locationOfHouse',
label: 'Demo',
placeHolder: 'Demo?'
},
{
xtype: 'spinnerfield',
name: 'numberOfPeople',
label: 'Demo',
minValue: 0,
maxValue: 99,
increment: 1,
cycle: true
}
]
}
]
},