Hello,
I am currently working on displaying data within Handsontable using a custom renderer. My goal is to render the decimal value of each cell when it is not null. However, if the cell’s value is null, I intend to display an empty cell. Despite my efforts, cells with null values are being displayed as zero in the UI. Could anyone advise on how to explicitly set these cells to appear empty rather than showing a zero?
The following is the custom renderer I’m using,
const valueRenderer = (
instance,
td,
row,
col,
prop,
value,
cellProperties ) => {
if (value !== null) {
td.textContent = Number(value).toFixed();
} else {
td.textContent = null;
}
};
Thank you.