Right at the start, notice the loading mask covers the Gantt widget only
Is it possible to have the mask cover the toolbar as well? Or have it cover a custom element (like document.body)? Or replace the mask function altogether for a custom one? Or maybe if there are events related to this I could disable the toolbar when the mask is active?
Well I have a bad news... It looks like the pdfExport feature expects the loadMask config to be set...
Try your code in a demo that enables the pdfExport feature, launch the export dialog and hit Export. You'll get this error:
gantt.module.js?timestamp=216:17877 Uncaught (in promise) TypeError: Cannot set property 'element' of null
at Gantt.mask (gantt.module.js?timestamp=216:17877)
at PdfExport$2.export (gantt.module.js?timestamp=216:64087)
at PdfExport$2.onExportDialogExport (gantt.module.js?timestamp=216:64235)
at SchedulerExportDialog.trigger (gantt.module.js?timestamp=216:3391)
at SchedulerExportDialog.onExportClick (gantt.module.js?timestamp=216:62555)
at Button.trigger (gantt.module.js?timestamp=216:3391)
at Button.onInternalClick (gantt.module.js?timestamp=216:23517)
at HTMLButtonElement.handler (gantt.module.js?timestamp=216:11795)
Gantt 2.1.6
EDIT: I can use
loadMask: ''
and this fixes it but mixing this to this bug, the result is not pretty...
Removing the export mask is not supported. I've opened a feature request: https://github.com/bryntum/support/issues/1239
Sorry, we didn't implement this as a single fix and just removed the grid load mask dependency. Though you can add your own mask to the body the same way as it was shown in the first reply. Please see the example: