# DataGridOutputProps (@salmonui/data-grid)

> The DataGridOutputProps interface of @salmonui/data-grid.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridOutputProps

```ts
import type { DataGridOutputProps } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
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;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `exportWriters` | `exportWriters?: DataGridExportWriters;` | optional | Excel and PDF writer loaders; without one the matching toolbar and menu items are disabled. |
| `onBeforeExport` | `onBeforeExport?: (event: DataGridBeforeExportEvent<Row>) => void;` | optional |  |
| `onExport` | `onExport?: (event: DataGridExportEvent<Row>) => void;` | optional |  |
| `printing` | `printing?: DataGridPrinting<Row>;` | optional | Print scope and hierarchy mode (`print()` options override them). |
| `onBeforePrint` | `onBeforePrint?: (event: DataGridBeforePrintEvent) => void;` | optional |  |
| `onAfterPrint` | `onAfterPrint?: (event: DataGridAfterPrintEvent) => void;` | optional |  |
