But its not clear where the renderer & customRenderer should be set/unSet before and after the export call
Can you please provide a complete sample?
Also, completely unrelated, other libraries offer a platform for the community to create samples and deeplink them into threads like this to better showcase bugs, and sample fixes, similar to codepen. Have you guys thought of adding that? It would really make this interactivity shine
Re: [REACT] Print is not displaying all resource cells for custom renderer
// ...
gantt.on('beforePdfExport', ({ config }) => {
nameCustom.renderer = newRenderer.bind(nameCustom);
});
gantt.on('pdfExport', ({ response, error }) => {
// move it back after
nameCustom.renderer = NameColumn.prototype.treeRenderer.bind(nameCustom);
});
Re: [REACT] Print is not displaying all resource cells for custom renderer
Posted: Mon Aug 12, 2024 10:47 am
by khattakdev
Hey,
Also, completely unrelated, other libraries offer a platform for the community to create samples and deeplink them into threads like this to better showcase bugs, and sample fixes, similar to codepen. Have you guys thought of adding that? It would really make this interactivity shine
Great question, we will set something like that in the future. In case you want to keep an eye on the progress, you can subscribe to the GitHub ticket: https://github.com/bryntum/support/issues/9799