Ext.define('Ext.window.myWindow', { extend: 'Ext.window.Window', alias: 'widget.myWindow', config: { width: 640, closeAction: 'hide', height: 400, resizable: false, shadow: true, modal: true, closable: true, plain: true, border: false, bodyBorder: false }, constructor: function (cnfg) { this.callParent(arguments); this.initConfig(cnfg); } });