View as Markdown

API reference: @salmonui/data-grid

DataGridExportWritersinterface

import type { DataGridExportWriters } from '@salmonui/data-grid';
interface DataGridExportWriters {
    readonly excel?: () => Promise<{
        readonly exportXlsx: WriterFn;
    }>;
    readonly pdf?: () => Promise<{
        readonly exportPdf: WriterFn;
    }>;
}

On-demand Excel and PDF writer modules. Pass dynamic imports so the writers stay out of the initial bundle: excel loads the xlsx subpath and pdf the pdf subpath of the

@salmonui

/export package (docs: Export).

DataGridExportWriters members (2)
NameSignatureDescription
exceloptionalreadonly excel?: () => Promise<{ readonly exportXlsx: WriterFn; }>;
pdfoptionalreadonly pdf?: () => Promise<{ readonly exportPdf: WriterFn; }>;