2

In extjs, is there any way to change a property for a specific type of control across the entire project from one place, essentially making it the default value for this property on all new instances of that class?

In particular, I want to change all the msgTarget's on all field controls from 'qtip' to 'side'.

Izhaki
  • 23,372
  • 9
  • 69
  • 107

2 Answers2

2

This should work:

Ext.onReady( function() { 

    Ext.override( Ext.form.Labelable, {
         msgTarget: 'side'
    });

});

See this answer for more info.

Community
  • 1
  • 1
Izhaki
  • 23,372
  • 9
  • 69
  • 107
0

The only thing that is working for me is something like this:

Ext.define('FooMsgTargetOverride', {
    override: 'Ext.form.field.Base',
    msgTarget: 'under'
});
Walialu
  • 4,096
  • 2
  • 27
  • 29