# HG changeset patch # User Torsten Irländer # Date 1367238007 -7200 # Node ID af8d7217521db8cfa2db17c076ec52c18ce123a1 # Parent 1e257ec5622022b0a2481eef08785b90765f640d Added basic Proben controller. diff -r 1e257ec56220 -r af8d7217521d app/controller/Proben.js --- /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'); + } +});