torsten@1: Ext.define('Lada.controller.Proben', { torsten@1: extend: 'Ext.app.Controller', torsten@4: views: [ torsten@4: 'proben.List' torsten@4: ], torsten@13: stores: [ torsten@13: 'Proben' torsten@13: ], torsten@13: models: [ torsten@13: 'Probe' torsten@13: ], torsten@1: init: function() { torsten@1: console.log('Initialising the Proben controller'); torsten@1: this.control({ torsten@1: // CSS like selector to select element in the viewport. See torsten@1: // ComponentQuery documentation for more details. torsten@5: 'viewport > probenlist': { torsten@1: // Map the "render" event to the given function. torsten@5: render: this.onPanelRendered, torsten@5: // Map Doubleclick on rows of the probenlist. torsten@5: itemdblclick: this.editProbe torsten@1: } torsten@1: }); torsten@1: }, torsten@1: onPanelRendered: function() { torsten@1: console.log('The panel was rendered'); torsten@5: }, torsten@5: editProbe: function(grid, record) { torsten@5: console.log('Double click on ' + record.get('name')); torsten@1: } torsten@1: });