Skip to content

exportConfigSchema

Déclaration
exportConfigSchema = defineWidgetConfig({
i18n: i18nSchemaFrom(exportTranslations),
title: {
fr: 'Exporter',
nl: 'NL - Exporter',
},
icon: {
lucide: 'Printer',
},
inToolbar: inToolbarSchemaFrom({
type: 'button',
}),
onActivate: {
deactivate: {
classes: ['Report', 'Identify', 'AddData', 'Draw', 'MeasureDistance', 'MeasureSurface', 'AdvancedSearch'],
},
},
config: z
.object({
allowedExtensions: z.array(z.enum(ExportFormat)).default([ExportFormat.PDF, ExportFormat.PNG]),
allowLegend: z.boolean().default(true),
templateApiUrl: z.string().default('https://geoservices.test.wallonie.be/geoviewer-services/api/template'),
})
.optional()
.prefault({}),
})