O'Reilly logo

Sencha MVC Architecture by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Class System

In the previous chapter, we looked into Sencha MVC architecture and implemented a small application where we defined and used various classes. A couple of things we did were as follows:

  • We defined classes using Ext.define
  • We defined classes by extending existing classes
  • We instantiated classes using Ext.create
  • We used aliases while defining the view classes and used them as xtype
  • We used ext-debug.js/ext.js for the ExtJS application, and sencha-touch-debug.js/sencha-touch.js for the Sencha Touch application rather than the xxx-all-xxx variants
  • We included only the main app.js file in index.html

Questions that arose out of these items were:

  • Why Ext.define and not Ext.extend?
  • Why Ext.create and not the new operator?
  • How does framework ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required