In a simple project I like to use different types (numeric + dropdown) and some styling in the same instance.
In the Hot creator I’am using this snippet:
cells: function (row, col, prop) {
this.renderer = function (instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
if (instance.getDataAtRowProp(row, 'knart') == 'R') {
td.style.background = '#555';
td.style.color = 'white';
};
}
}
This works as aspected, but the type rendering (numeric,dropdown) disappears. It seems my code overwrite the standard behaviour. If I delete the ‘cells’-code, the the type renderers comes back.