pe:sheet custom cell

Community Driven Extensions Project
Post Reply
Giagl
Posts: 1
Joined: 03 Apr 2019, 16:13

03 Apr 2019, 16:32

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?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

08 Apr 2019, 14:32

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests