Strategy interface for exporting a FormSchema into a specific format.
Implementations must be plain classes — no Angular DI required.
class MyExportStrategy implements ExportStrategy { readonly label = 'My Format'; readonly description = 'Export as My Format.'; export(schema: FormSchema): ExportResult { return { mimeType: 'text/plain', fileName: 'form.txt', content: JSON.stringify(schema), }; }} Copy
class MyExportStrategy implements ExportStrategy { readonly label = 'My Format'; readonly description = 'Export as My Format.'; export(schema: FormSchema): ExportResult { return { mimeType: 'text/plain', fileName: 'form.txt', content: JSON.stringify(schema), }; }}
Readonly
Short description of the export format.
Human-readable label displayed in the export format selector.
Generate an ExportResult from the given schema.
Strategy interface for exporting a FormSchema into a specific format.
Implementations must be plain classes — no Angular DI required.
Example