In my handsontable , I display chexkbox in my first column using (type: ‘checkbox’). There is a situation when my table is shown in readonly mode to the user. At that time I am disabling the entire table, so user cannot edit.
Though the first column which has checkbox is in read only mode, I am able to click the checkbox(check and uncheck), How can I make the checkbox not selectable during readonly mode. Below is my code:
{ type: ‘checkbox’, readOnly: true, className: ‘htCenter htMiddle’, renderer: this.testrenderer }
testrenderer(instance, td, row, col, prop, value, cellProperties) {
td.style.verticalAlign = ‘middle’;
instance.setCellMeta(row, 0, ‘readOnly’, true);
td.style.backgroundColor = ‘#0000’;
}