View as Markdown

API reference: @salmonui/data-grid

DataGridOutputPropsinterface

import type { DataGridOutputProps } from '@salmonui/data-grid';
interface DataGridOutputProps<Row> {
    exportWriters?: DataGridExportWriters;
    onBeforeExport?: (event: DataGridBeforeExportEvent<Row>) => void;
    onExport?: (event: DataGridExportEvent<Row>) => void;
    printing?: DataGridPrinting<Row>;
    onBeforePrint?: (event: DataGridBeforePrintEvent) => void;
    onAfterPrint?: (event: DataGridAfterPrintEvent) => void;
}
DataGridOutputProps members (6)
NameSignatureDescription
exportWritersoptionalexportWriters?: DataGridExportWriters;

Excel and PDF writer loaders; without one the matching toolbar and menu items are disabled.

onBeforeExportoptionalonBeforeExport?: (event: DataGridBeforeExportEvent<Row>) => void;
onExportoptionalonExport?: (event: DataGridExportEvent<Row>) => void;
printingoptionalprinting?: DataGridPrinting<Row>;

Print scope and hierarchy mode (print() options override them).

onBeforePrintoptionalonBeforePrint?: (event: DataGridBeforePrintEvent) => void;
onAfterPrintoptionalonAfterPrint?: (event: DataGridAfterPrintEvent) => void;