I have an Ajax response which returns row and cell positions (row = 0, col = [1,2,3]). so the pair would be like [0,1], [0,2], [0,3].
Just see the example below,
cells = [1,2,3]
$.each(cells, function(x, cell){
hot.setCellMeta(0, cell, 'className', 'error-bg')
});
Style:
.handsontable .error-bg {
background-color: #ff4c42 !important;
}
The problem is when I manually click on cell then only background appears.