Tutorial by Examples

Worse ViewController: // ... myMethod: function () { this.getView().lookup('myhappyfield').setValue(100); } //... View: //... items: [ { xtype: 'textfield', reference: 'myhappyfield' } ] //... Better ViewController: // ... myMethod: function () { ...
Overrides: Override file: Ext.define('MyApp.override.CornField', override: 'Ext.form.field.Text', initComponent: function () { this.callParent(arguments); this.setValue('Corn!'); } ); Use in app: { xtype: 'textfield' } Extensions: Override file: Ext...
In ExtJS, you can override nearly any method of the framework and replace it with your own. This allows you to modify existing classes without directly modifying the ExtJS source code. Sometimes, you may want to enhance an existing class or provide a sane default property on a class. For example, ...

Page 1 of 1