Page 1 of 1

pe:sheet custom cell

Posted: 03 Apr 2019, 16:32
by Giagl
Hi!
For my current project I am required to use a high performance table. Sheet seems perfect for the job!
I was wondering if and how it was possible to add custom cells, or cell renderers, to the sheet component. I tried the approach as described on https://handsontable.com/docs/7.0.0/dem ... erers.html changing Handsontable to this.cfg, which resulted in a TypeError: Cannot read property 'registerRenderer' of undefined.
Using the exact syntax as shown in the example (Handsontable.renderers.registerRenderer('myRenderer', myCustomRenderer);) I was able to pick my custom colType, but it was rendered just like the default colType (text).
Using Handsontable.cellTypes.registerCellType had pretty much the same results, as did adding a renderer directly to the cell via this.cfg.columns[0].renderer = myCustomRenderer;
Is there a way to add a custom cell renderer to pe:sheet, or have the cell render HTML at least?

Re: pe:sheet custom cell

Posted: 08 Apr 2019, 14:32
by Melloware