I use to code trigger on a textfield as follows. The fireEvent would fire an event in a controller. Now it does nothing. After hours of searching for an answer and experimenting, I surrender.
I tried a variety of things including using the ViewController but nothing ever happens. I can't seem to figure out the right combination.
Code:
{
xtype: 'textfield',
anchor: '100%',
hidden: true,
itemId: 'searchform_acct',
fieldLabel: 'Account',
name: 'acct',
enforceMaxLength: true,
maxLength: 4,
regex: /[0-9]/,
triggers: {
mytrigger1: {
handler: function() {
this.fireEvent('acctsearch');
},
cls: 'x-form-search-trigger'
}
}
}
I tried a variety of things including using the ViewController but nothing ever happens. I can't seem to figure out the right combination.

Comment