Hello,
I’m trying to set a cell red by adding to the td’s class attribute using a function like:
function highlightCellError(index, col, error) {
var td = hot.getCell(index, col);
$(td).addClass(“error”);
$(td).qtip({
content: errorMessages[error],
position: { my: “bottom left”, at: “center top”},
style: {classes: “qtip-tipsy qtip-rounded”}
});
}
but the effect is not permanent. The behavior is seemingly random as to when the class effect will be removed. In testing, I see that if any cell content is updated with a call like:
hot.setDataAtRowProp(index, 'desc', descriptionString);
following this highlightCellError function call, then all the cells in the table are “reset” and the cell color disappears. How can a cell’s color be made to be permanent?
Thanks.