View as Markdown

API reference: @salmonui/core/export-model

ExportColumnDefinterface

import type { ExportColumnDef } from '@salmonui/core/export-model';
interface ExportColumnDef {
    readonly id?: string;
    readonly field?: string;
    readonly type?: ColumnType;
    readonly format?: string | FormatOptions;
    readonly header?: string;
}

The column definition fields an export hook may read (the Data Grid passes its column definition).

ExportColumnDef members (5)
NameSignatureDescription
idoptionalreadonly id?: string;
fieldoptionalreadonly field?: string;
typeoptionalreadonly type?: ColumnType;
formatoptionalreadonly format?: string | FormatOptions;
headeroptionalreadonly header?: string;