これはエラーを表示していないし、UIを表示していません。私は、数値フィールドを動的に追加したい。煎茶タッチで私はext jsに非常に新しいです、誰でも自分のコードで何が間違っているのかを教えてください
var numberField= Ext.create('Ext.form.Panel', {
cls: 'questionRows',
hidden: show,
itemId: item.HealthNeedsDetailsGuid,
id: item.HealthNeedsDetailsGuid,
items: [{
xtype: 'field',
html: item_index + ') ' + item.HealthNeedsQuestion
}, {
xtype: 'numberfield',
anchor: '100%',
name: 'bottles',
clearIcon: false,
width: 400,
value: 99,
maxValue: 99,
minValue: 0
}]
});
::このような「ショー」が変数の場合ショー、それは「偽」である必要があります。 idsを使うべきではなく、itemIdsだけを使うべきです。あなたが数字フィールド(おそらくlabelAlign: 'top')でラベルを使うことができるので、xtype 'field'の項目は必要ありません – Dinkheller