我正在使用ExtJS 6和在項目中我有我正在使用textfield
但我的列表不工作。我做錯了什麼?任何人都可以幫助我。聽衆不工作的文本字段
我的代碼示例。
Ext.create('Ext.form.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',
allowBlank: false,
listeners: {
keypress : function() {
alert("Name")
}
}
}, {
xtype: 'textfield',
name: 'email',
fieldLabel: 'Email Address',
vtype: 'email',
listeners: {
keypress : function() {
alert("Email")
}
}
}]
});
謝謝。這可能工作正常。 – David