UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

29 lines (24 loc) 747 B
/** * The main application class. An instance of this class is created by app.js when it * calls Ext.application(). This is the ideal place to handle application launch and * initialization details. */ Ext.define('Calendar.Application', { extend: 'Ext.app.Application', name: 'Calendar', stores: [ // TODO: add global / shared stores here ], launch: function () { // TODO - Launch the application }, onAppUpdate: function () { Ext.Msg.confirm('Application Update', 'This application has an update, reload?', function (choice) { if (choice === 'yes') { window.location.reload(); } } ); } });