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?
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?
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';
}
}
}
Yes we can.