API reference: @salmonui/data-grid
DataGridBeforeExportEventinterface
import type { DataGridBeforeExportEvent } from '@salmonui/data-grid';interface DataGridBeforeExportEvent<Row> extends DataGridEvent {
readonly format: ExportFormat;
readonly options: DataGridExportOptions<Row>;
}
Before an Excel or PDF export: preventDefault() cancels (the method resolves to null).
| Name | Signature | Description |
|---|---|---|
format | readonly format: ExportFormat; | |
options | readonly options: DataGridExportOptions<Row>; | |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |