I'm almost done in porting a couple of projects based on vaadin elements vaadin-grid from API 1.x to the latest version but I've not found examples or documentation about how to assign a custom renderer to a column.
For example in main.js I can't figure out how to port in API 2+ the following:
grid.columns[2].renderer = function (cell) {
cell.element.innerHTML = '';
var progressBar = document.createElement('progress');
progressBar.setAttribute('value', ((statuses.indexOf(cell.data) + 1) / statuses.length).toString());
cell.element.appendChild(progressBar);
};
The specific problem in here is that in API 2+ columns
are undefined
Is it possible to assing custom rendering behavoir to a vaadin-grid-column
?
NB: this question is not about vaadin framework
but about vaadin elements
Debug session looking for something may help such as TemplateRenderer
or similar but I found nothing until now: