Closed RayburnTrading closed 1 year ago
Hi,
const tableJson = { "headers": [ { "label":"Name", "property":"name", "width":100 }, { "label":"Age", "property":"age", "width":100 }, { "label":"Year", "property":"year", "width":100 } ], "datas": [ { "name":"bold:Name 1", "age":"Age 1", "year":"Year 1" }, { "name":"Name 2", "age":"Age 2", "year":"Year 2" }, { "name":"Name 3", "age":"Age 3", "year":"Year 3", "renderer": "function(value, i, irow){ return value + `(${(1+irow)})`; }" } ], "rows": [ [ "Name 4", "Age 4", "Year 4" ] ], "options": { "width": 300 } }; doc.table(tableJson);
This code taken from the official example is giving me column headers of [object Object]?
PDFKit: 0.13.0 pdfkit-table: 0.1.99
Any advice?
Thanks.
Hi,
This code taken from the official example is giving me column headers of [object Object]?
PDFKit: 0.13.0 pdfkit-table: 0.1.99
Any advice?
Thanks.