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