Disable checkbox click when handsontable is in readonly mode

Tags: #<Tag:0x00007f8b286299a8>

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’;

}

Hey @krish

have you considered to add the readOnly option via instance settings like here https://jsfiddle.net/dn3x5zj6/ ? It blocks the change of a checkbox.