O'Reilly logo

Ext JS Application Development Blueprints by Colin Ramsay

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

Interface in your face

An Ext JS application created with Sencha Cmd will set up the main view as a viewport filling the entire browser window. We'll use this view and adapt it to our needs, as shown in the following code:

// app/view/main/Main.js Ext.define('Alcohology.view.main.Main', { extend: 'Ext.Panel', xtype: 'app-main', controller: 'main', viewModel: 'main', layout: 'border', header: { xtype: 'app-header' }, items: [ { xtype: 'categories', width: 200, region: 'west' }, { xtype: 'product-list', region: 'center' } ], initComponent: function() { this.callParent(arguments); this.add(Ext.create('Alcohology.view.cart.Cart', { reference: 'cartWindow' })); this.add(Ext.create('Alcohology.view.account.Account', { reference: 'accountWindow' })); ...

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