talha06
26 Jun 2012, 11:47 AM
Hello everyone,
I want to apply a plugin to all fields(numberfield, textfield, datefield, etc.) in the library ExtJS 4.1. Is there anyone who knows how can I do this?As I know, all fields are extended from BaseField. So I tried this; but it didn't work at all. I'll be happy if someone can guide me.Thanks in advance.
Ext.form.BaseField.override({
init : function() {
this.plugins = [ 'clearbutton' ];
}
});
I want to apply a plugin to all fields(numberfield, textfield, datefield, etc.) in the library ExtJS 4.1. Is there anyone who knows how can I do this?As I know, all fields are extended from BaseField. So I tried this; but it didn't work at all. I'll be happy if someone can guide me.Thanks in advance.
Ext.form.BaseField.override({
init : function() {
this.plugins = [ 'clearbutton' ];
}
});