@theredhead — Frontend Library - v0.2.1
    Preparing search index...

    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),
    };
    }
    }
    interface ExportStrategy {
        description: string;
        label: string;
        export(schema: FormSchema): ExportResult;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    description: string

    Short description of the export format.

    label: string

    Human-readable label displayed in the export format selector.

    Methods