diff app/controller/Proben.js @ 1:af8d7217521d

Added basic Proben controller.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 29 Apr 2013 14:20:07 +0200
parents
children b8e56e880f02
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/controller/Proben.js	Mon Apr 29 14:20:07 2013 +0200
@@ -0,0 +1,17 @@
+Ext.define('Lada.controller.Proben', {
+    extend: 'Ext.app.Controller',
+    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