Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:1e257ec56220 | 1:af8d7217521d |
---|---|
1 Ext.define('Lada.controller.Proben', { | |
2 extend: 'Ext.app.Controller', | |
3 init: function() { | |
4 console.log('Initialising the Proben controller'); | |
5 this.control({ | |
6 // CSS like selector to select element in the viewport. See | |
7 // ComponentQuery documentation for more details. | |
8 'viewport > panel': { | |
9 // Map the "render" event to the given function. | |
10 render: this.onPanelRendered | |
11 } | |
12 }); | |
13 }, | |
14 onPanelRendered: function() { | |
15 console.log('The panel was rendered'); | |
16 } | |
17 }); |