Hello!
I have a question regarding my custom renderer, very similar to this:
I basically wish to achieve the same thing, BUT I do not know hot to get the whole row.
So, what I want is, if the value of a cell is ‘All’, make the entire row blue.
I am doing something like this inside my renderer:
function blueCellsRenderer(instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
if (col <= 3) {
cellProperties.readOnly = true;
td.style.background = "#aac0de";
td.style.color = "#000000";
}
if (value === "All") {
td.parentNode.style.background = "#aac0de"; // doesn't work
}
}
Maybe I am using this renderer wrong, as it is the first time I am creating a custom one, but how can I get the index of the row based on the cell value?
I hope I am clear, if not, let me know and I will give you more specific details.
Thank you so much!