Today we’re going to dig a little deeper into the class system to see how it actually works. To briefly recap, the new class system enables us to define classes like this: Ext.define( 'Ext.Window' , { extend: 'Ext.Panel' , requires: 'Ext.Tool' , mixins: { draggable: 'Ext.util.Draggable' }, config: { title: "Window Title" } }); Here we’ve set up a slightly simplified version of the Ext.Window class. We’ve set Window up to be a subclass of Panel, declared that it requires the Ext.Tool class and that it mixes in functionality from the Ext.util.Draggable class. There are a few new things here so we’ll attack them one at a time. The ‘extend’ declaration doe...
A foundation you can build.