Checkbox doesn't work

Tags: #<Tag:0x00007f8b198f88a0>

I have this entry in ‘Colums’:

 {
    data: 'ok', width: 60, type: 'checkbox', className: 'htCenter'
 },

But the renderer produce a simple textfield with true and false. Do you have an idea to debug this issue?Checkboxbug

Opps I forget to extend my onCells function:

   const onCell = function () {
        this.renderer = function (instance, td, row, col, prop, value, cellProperties) {
            switch (cellProperties.type) {
                case 'numeric':
                    Handsontable.renderers.NumericRenderer.apply(this, arguments);
                    break;
                case 'dropdown':
                    Handsontable.renderers.DropdownRenderer.apply(this, arguments);
                    break;
                case 'checkbox':
                    Handsontable.renderers.CheckboxRenderer.apply(this, arguments);
                    break;
                case 'logo':
                    LogoRenderer.apply(this,arguments);
                    break;
                default:
                    Handsontable.renderers.TextRenderer.apply(this, arguments);
            }
            if (instance.getDataAtRowProp(row, 'active') != '✓') {
                td.style.background = '#eee';
                td.style.color = '#888';
            }
        }
    }

Hey @Knoeterich

so I guess that the issue is solved and we can close the report? :slight_smile:

Yes we can.

1 Like