apex-grid
    Preparing search index...

    Interface ExportOptions<T>

    Options shared by all export targets.

    interface ExportOptions<T extends object> {
        columns?: readonly (keyof T)[];
        filename?: string;
        formatter?: (
            column: ColumnConfiguration<T>,
            value: unknown,
            row: T,
        ) => ExportCellValue;
        includeHeader?: boolean;
        source?: ExportSource;
    }

    Type Parameters

    • T extends object

    Hierarchy (View Summary)

    Index

    Properties

    columns?: readonly (keyof T)[]

    Column keys to include. When omitted, every visible non-hidden column with exportable !== false is exported, in display order.

    filename?: string

    Output filename, without extension. Defaults to 'data'.

    formatter?: (
        column: ColumnConfiguration<T>,
        value: unknown,
        row: T,
    ) => ExportCellValue

    Per-cell value formatter. Receives the column configuration, the raw value from the record, and the record itself. Return one of ExportCellValue (return a Date to keep date typing in XLSX).

    includeHeader?: boolean

    Whether to emit a header row. Defaults to true.

    source?: ExportSource

    Row set to export. Defaults to 'view'.