View as Markdown

API reference: @salmonui/data-grid

DataGridExportEventinterface

import type { DataGridExportEvent } from '@salmonui/data-grid';
interface DataGridExportEvent<Row> extends DataGridEvent {
    readonly format: ExportFormat;
    readonly options: DataGridExportOptions<Row>;
    readonly file: ExportFile<Uint8Array | string>;
}

An Excel or PDF export finished: the file is ready (before the download).

DataGridExportEvent members (7, 4 inherited)
NameSignatureDescription
formatreadonly format: ExportFormat;
optionsreadonly options: DataGridExportOptions<Row>;
filereadonly file: ExportFile<Uint8Array | string>;
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).