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

The account window

The account view is a window that contains several subcomponents (such as login, register, and past orders). Let's take a look at the lengthy, but straightforward code for it:

// app/view/account/Account.js Ext.define('Alcohology.view.account.Account', { extend: 'Ext.Window', xtype: 'account', layout: 'fit', controller: 'account', modal: true, resizable: false, header: false, onEsc: Ext.emptyFn, width: 800, autoHeight: true, frame: true, items: [ { xtype: 'container', layout: 'column', items: [ { xtype: 'login', title: 'Login', columnWidth: 0.5 }, { xtype: 'register', title: 'Register', columnWidth: 0.5 } ], bind: { hidden: '{currentUser}' } }, { xtype: 'container', layout: 'column', items: [ { xtype: 'register', title: 'Register', ...

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