Mercurial > lada > lada-client
comparison app/controller/Proben.js @ 5:039584709fa7
Map double click event on rows of the userlist to the editProben function.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 15:10:43 +0200 |
parents | b8e56e880f02 |
children | a8efc4b96888 |
comparison
equal
deleted
inserted
replaced
4:b8e56e880f02 | 5:039584709fa7 |
---|---|
6 init: function() { | 6 init: function() { |
7 console.log('Initialising the Proben controller'); | 7 console.log('Initialising the Proben controller'); |
8 this.control({ | 8 this.control({ |
9 // CSS like selector to select element in the viewport. See | 9 // CSS like selector to select element in the viewport. See |
10 // ComponentQuery documentation for more details. | 10 // ComponentQuery documentation for more details. |
11 'viewport > panel': { | 11 'viewport > probenlist': { |
12 // Map the "render" event to the given function. | 12 // Map the "render" event to the given function. |
13 render: this.onPanelRendered | 13 render: this.onPanelRendered, |
14 // Map Doubleclick on rows of the probenlist. | |
15 itemdblclick: this.editProbe | |
14 } | 16 } |
15 }); | 17 }); |
16 }, | 18 }, |
17 onPanelRendered: function() { | 19 onPanelRendered: function() { |
18 console.log('The panel was rendered'); | 20 console.log('The panel was rendered'); |
21 }, | |
22 editProbe: function(grid, record) { | |
23 console.log('Double click on ' + record.get('name')); | |
19 } | 24 } |
20 }); | 25 }); |