the feature works great, just a question, is it possible to not print the gantt part (right side), somehow hide that for printing ?
Support Forum
Hi @pincherhgz,
It is not supported yet but we have a ticket that is gonna make it possible for both Pdf export and print feature. The ticket link: https://github.com/bryntum/support/issues/2610
But you can achieve this by using few events. You will have to collapse the timeline region in the beforePdfExport event and expand it back in the pdfExport event.
https://bryntum.com/products/gantt/docs/api/Gantt/feature/export/Print#event-beforePdfExport
https://bryntum.com/products/gantt/docs/api/Gantt/feature/export/Print#event-pdfExport
features : {
print : {
keepRegionSizes : { locked : true }
}
},
listeners : {
beforePDFExport(data) {
gantt.subGrids.normal.collapse();
},
pdfExport() {
gantt.subGrids.normal.expand();
}
}
Hope it helps!
Regards,
Ghous