view app/controller/Proben.js @ 4:b8e56e880f02

Added a first example view (userlisting) from the EXJS Tutorial. Need to be adapted.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 29 Apr 2013 14:45:16 +0200
parents af8d7217521d
children 039584709fa7
line wrap: on
line source
Ext.define('Lada.controller.Proben', {
    extend: 'Ext.app.Controller',
    views: [
        'proben.List'
    ],
    init: function() {
        console.log('Initialising the Proben controller');
        this.control({
            // CSS like selector to select element in the viewport. See
            // ComponentQuery documentation for more details.
            'viewport > panel': {
                // Map the "render" event to the given function.
                render: this.onPanelRendered
            }
        });
    },
    onPanelRendered: function() {
        console.log('The panel was rendered');
    }
});

http://lada.wald.intevation.org