View as Markdown

API reference: @salmonui/core/export-model

ExportSourceColumninterface

import type { ExportSourceColumn } from '@salmonui/core/export-model';
interface ExportSourceColumn<Row> {
    readonly columnId: ColumnId;
    readonly path: readonly ColumnId[];
    readonly def: ExportColumnDef;
    readonly accessor: (row: Row) => unknown;
}

The host column behind an export column (the Data Grid passes its compiled column).

ExportSourceColumn members (4)
NameSignatureDescription
columnIdreadonly columnId: ColumnId;
pathreadonly path: readonly ColumnId[];

Stacked header ancestry, root first, including this column.

defreadonly def: ExportColumnDef;
accessorreadonly accessor: (row: Row) => unknown;