Hi!
How can I reset cell data to its original value (inside a custom renderer)? Below is part of the code showing the logic of what I am trying to achieve.
…
const opt = src.find(data=> parseInt(data.id) === parseInt(value));
if(opt) {
value = opt.label;
}
if(value === null){
value = columnSettings.placeHolder;
}
if(value === undefined){
value = previousValue ; //should reset the cell’s original value
}
Handsontable.renderers.getRenderer(‘dropdown’).apply(
this,
[instance, td, row, col, prop, displayValue !== null ? displayValue : value, cellProperties],
);
}
…
Thank you.