API reference: @salmonui/data-grid
DataGridOutputApiinterface
import type { DataGridOutputApi } from '@salmonui/data-grid';interface DataGridOutputApi<Row> {
exportToExcel(options?: DataGridExcelExportOptions<Row>): Promise<ExportFile | null>;
exportToPdf(options?: DataGridPdfExportOptions<Row>): Promise<ExportFile | null>;
exportToCsv(options?: DataGridCsvExportOptions<Row>): Promise<ExportFile<string> | null>;
print(options?: DataGridPrintOptions<Row>): Promise<boolean>;
}
| Name | Signature | Description |
|---|---|---|
exportToExcel | exportToExcel(options?: DataGridExcelExportOptions<Row>): Promise<ExportFile | null>; | XLSX export ( |
exportToPdf | exportToPdf(options?: DataGridPdfExportOptions<Row>): Promise<ExportFile | null>; | PDF export ( |
exportToCsv | exportToCsv(options?: DataGridCsvExportOptions<Row>): Promise<ExportFile<string> | null>; | CSV export ( |
print | print(options?: DataGridPrintOptions<Row>): Promise<boolean>; | Prints the grid (every row of the scope, no virtualization). Resolves false when prevented or outside a browser. |