I can add tap event to textfield like this:
{
xtype : 'textfield',
name : 'GIVEN_NAME',
label : 'Given Name',
disabled: false,
listeners : {
element : 'element',
tap : function() {
console.log('tap');
}
}
}
and it works. But this one, when used in controller, doesn't work:
control: {
givenName: {
element : 'element',
tap: 'onGivenNameTap'
}
}
Why? How can I make tap event work on textfield?