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?

User avatar
Melloware
Posts: 1112
Joined: 22 Apr 2013, 15:48

08 Apr 2019, 14:32

PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.2.19 / PF Extensions 6.2.10

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest