Mercurial > lada > lada-client
comparison app/controller/Sql.js @ 6:8e79bda4d55b
Added a list to select predefined SQL Statement for the Proben list.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 15:18:26 +0200 |
parents | |
children | e4fcb4ddd782 |
comparison
equal
deleted
inserted
replaced
5:039584709fa7 | 6:8e79bda4d55b |
---|---|
1 Ext.define('Lada.controller.Sql', { | |
2 extend: 'Ext.app.Controller', | |
3 views: [ | |
4 'sql.List' | |
5 ], | |
6 init: function() { | |
7 console.log('Initialising the Sql controller'); | |
8 this.control({ | |
9 // CSS like selector to select element in the viewport. See | |
10 // ComponentQuery documentation for more details. | |
11 'viewport > sqllist': { | |
12 // Map the "render" event to the given function. | |
13 render: this.onPanelRendered, | |
14 // Map Doubleclick on rows of the probenlist. | |
15 itemclick: this.selectSql | |
16 } | |
17 }); | |
18 }, | |
19 onPanelRendered: function() { | |
20 console.log('The panel was rendered'); | |
21 }, | |
22 selectSql: function(grid, record) { | |
23 console.log('Selected SQL ' + record.get('id')); | |
24 } | |
25 }); |