Main force

Looking back at our design, the main view is the container for the rest of the UI in our application. It looks like this:

// app/view/main/Main.js Ext.define('Postcard.view.main.Main', { extend: 'Ext.Panel', xtype: 'app-main', plugins: ['viewport', 'responsive'], controller: 'main', viewModel: 'main', session: true, responsiveConfig: { 'tall': { layout: { type: 'card' } }, 'wide': { layout: { type: 'hbox', align: 'stretch' } } }, dockedItems: [ { xtype: 'app-header' }, { dock: 'bottom', xtype: 'button', cls: 'logout', overCls: '', focusCls: '', text: 'Logout' } ], items: [ { xtype: 'threads', flex: 1 }, { xtype: 'container', flex: 1, defaults: { hidden: true }, items: [ { xtype: 'messages' }, { xtype: 'composer' } ] } ], isCard: function() ...

Get Ext JS Application Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.