Hello, good morning.
I’m telling you that it doesn’t work for me because when I create the handsontable I need to block the cell if the value is greater. I’m sharing the code with you because when I put the block in the cell it puts it in another cell.
cells: function (row, col) {
var cp = {};
if (col === 1) {
const etvs = JSON.stringify(
this.instance.getDataAtRowProp(row, 1)
);
const mds = JSON.stringify(
this.instance.getDataAtRowProp(row, 2)
);
let [etv, md] = Resutlados(etvs,mds);
// console.log(etv + " || " + md +" \n");
if ( Number(md) == Number(etv) ) {
cp.readOnly = false;
cp.editor = "text";
}else if (Number(md) > Number(etv) ) {
cp.readOnly = false;
cp.editor = "text";
} else if (Number(etv) > Number(md) ) {
cp.readOnly = true;
cp.editor = null;
}
}
return cp;
}
https://jsfiddle.net/nexter_me/ytc50w6x/28/