View as Markdown

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).

DataGridBeforeExportEvent members (6, 4 inherited)
NameSignatureDescription
formatreadonly format: ExportFormat;
optionsreadonly options: DataGridExportOptions<Row>;
typeinheritedtype: string;

'sortChange', 'beforeSortChange', ...

sourceinheritedsource: DataGridEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;

True after preventDefault() (before-events and click events).

preventDefaultinheritedpreventDefault: () => void;

Before-events and click events: cancels the action (or the built-in behavior).