thank you. i figured it out with your ‘getDataAtCell’
my code was :
let cellProps = {};
let data = this.instance.getData()[r][0];
if (['실패','전원불량','소등','점멸','모순','열림'].indexOf(data) != -1) {
cellProps.renderer = function (inst, td, row, col, prop, v, cellProps) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
td.style = `
font-weight:bold;
color:red;
`;
};
return cellProps
and now :
let cellProps = {}
let content = this.instance.getDataAtCell(r, c);
if (['실패','전원불량','소등','점멸','모순','열림'].indexOf(content) != -1) {
cp.className = 'htCenter htErr'
}
return cellProps
my ‘Before code’ with ‘getData’ works with ‘loadData’ and not with ‘setDataAtCell’.
with ‘getDataAtCell’ it works!