view app.js @ 10:21d7b63f8783

Do not autocreate a viewport as automatic loading of the Viewport.js fiel seems not to work anyway.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 30 Apr 2013 10:48:44 +0200
parents 12a65c2c5dbf
children 06da8faa2806
line wrap: on
line source
Ext.application({
    name: 'Lada',
    // Setting this variable to true should trigger loading the Viewport.js
    // file which sets ob the viewport. But this does not happen.
    autoCreateViewprt: false,
    launch: function() {
        // Start the application.
        console.log('Launching the application');
        Ext.create('Ext.container.Viewport', {
            layout: 'fit',
            title: 'Probenauswahlmaske',
            items: [
                {
                    xtype: 'probenlist'
                }
            ]
        });
    },
    // Define the controllers of the application. They will be initialized
    // first before the application "launch" function is called.
    controllers: [
        'Proben',
        'Sql'
    ]
});

http://lada.wald.intevation.org