Mercurial > lada > lada-client
view app/controller/Sql.js @ 14:c0b2faa47ee5
Load data from data/proben.json
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 30 Apr 2013 15:06:43 +0200 |
parents | e4fcb4ddd782 |
children | 3eaeeec2bb28 |
line wrap: on
line source
Ext.define('Lada.controller.Sql', { extend: 'Ext.app.Controller', views: [ 'sql.List' ], stores: [ 'Sql' ], init: function() { console.log('Initialising the Sql controller'); this.control({ // CSS like selector to select element in the viewport. See // ComponentQuery documentation for more details. 'viewport > sqllist': { // Map the "render" event to the given function. render: this.onPanelRendered, // Map Doubleclick on rows of the probenlist. itemclick: this.selectSql } }); }, onPanelRendered: function() { console.log('The panel was rendered'); }, selectSql: function(grid, record) { console.log('Selected SQL ' + record.get('id')); } });