Hello Bryntum team,
I’m currently working on customizing the PDF export dialog in the Gantt component and have encountered a few issues and questions:
Locale keys not working for certain fields:
I’ve attempted to localize the dialog using LocaleHelper.publishLocale(). Most keys work fine, but I’m having trouble finding the correct keys for the rows and schedule range labels. Could you provide guidance or documentation on the exact locale key names for these two fields? Currently, the localization is not applied to them, and I’m unsure if I’m using the correct keys.
ExportDialog: {
all: t("Gantt.exportGantt.allRows", "All Rows"),
cancel: t("Gantt.exportDialog.cancelButton", "Cancel"),
completeview: t("Gantt.exportDialog.completeView", "Complete Schedule"),
currentview: t("Gantt.exportDialog.currentView", "Visible Schedule"),
daterange: t("Gantt.exportDialog.dataRange", "Date Range"),
export: t("Gantt.exportDialog.exportButton", "Export"),
exporterType: t("Gantt.exportDialog.exporterTypeField", "Page Mode"),
fileFormat: t("Gantt.exportDialog.fileFormat", "File Forma"),
multipage: t("Gantt.exportDialog.multipage", "Multiple Pages"),
multipagevertical: t(
"Gantt.exportDialog.multipagevertical",
"Multiple Page (vertical)"
),
orientation: t("Gantt.exportDialog.orientationField", "Orientation"),
paperFormat: t("Gantt.exportDialog.paperFormat", "Paper Format"),
singlepage: t("Gantt.exportDialog.singlepage", "Single Page"),
visible: t("Gantt.exportDialog.visible", "Visible Rows"),
},
Hiding certain export dialog options:
I know I can hide entire fields by using hidden: true within the export dialog configuration, but I’m looking for a way to hide only some of the sub-options within a given field. For example, I only want to display two specific paper format options and hide the rest. Is there a recommended approach for selectively removing or hiding specific options rather than the entire field?
Adding custom paper format sizes:
Is it possible to add custom paper format sizes to the dialog, beyond the built-in formats provided by Bryntum? If so, how would I go about doing this?
Any guidance, documentation, or examples you can provide would be greatly appreciated.
Thanks in advance!