blob: 5e7bde5ec72040a9389ca58cafa7d1cd423afb3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
window.com_vaadin_tests_components_grid_MyBeanJSRenderer = function() {
this.init = function(cell) {
cell.element.setAttribute("column", cell.columnIndex);
}
this.render = function(cell, data) {
cell.element.innerHTML = 'Bean(' + data.integer + ', ' + data.string + ')'
}
this.getConsumedEvents = function() { return ["click"] };
this.onBrowserEvent = function(cell, event) {
cell.element.innerHTML = "Clicked " + cell.rowIndex + " with key " + this.getRowKey(cell.rowIndex) +" at " + event.clientX;
return true;
}
}
|