Skip to main content

Posts

Showing posts from January, 2014

ExtJS Business Spotlight

Business Value of Using Sencha Ext JS Ext JS offers an environment that is completely extensible and does not box developers into corners. It’s a core part of our product strategy because it allowed us to migrate our team of Java developers to an HTML5 based project faster and more efficiently. We got our team up to speed quickly using the extensive, high quality documentation. We didn’t face challenges of having to use disparate 3rd party controls and competing core programming models. Our initial prototype was delivered in much less time than it would have been using other JavaScript frameworks, and we were able to create a clean and modern UI. By using Ext JS, we were able to get our initial product to beta sooner which allowed us to get user feedback early in the cycle saving us time and money beyond the pure productivity gains offered by the framework. Our Advice to New Developers Ext JS will make it easy to develop your applications. It’s tempting to jump in and start w

ExtJS 4 - Classes -Statics Examples

Get the reference to the class from which this object was instantiated. Note that unlike  self , this.statics() is scope-independent and it always returns the class from which it was called, regardless of what this points to during run-time. The properties and methods should be given to a statics config inside the class. Ext .define( 'MyApp.Utilities' , {     statics: {         foo:  function  (a, b) {              return  a + b;         }     } }); Ext .define( 'MyApp.MyView' , {      extends :  'Ext.panel.Panel' ,     requires: [ 'MyApp.Utilities' ],     initComponent:  function  () {          MyApp . Utilities .foo( 1 ,  2 );     } }); Example 1: // Statics defined in view Ext.define('Computer', {      statics: {          factory: function(brand) {              // 'this' in static methods refer to the class itself              return new this(brand);          }      },      constru