View as Markdown

API reference: @salmonui/core/export-model

ExportCellStyleinterface

import type { ExportCellStyle } from '@salmonui/core/export-model';
interface ExportCellStyle {
    readonly bold?: boolean;
    readonly italic?: boolean;
    readonly color?: string;
    readonly backgroundColor?: string;
    readonly textAlign?: 'start' | 'center' | 'end';
    readonly fontSize?: number;
    readonly numberFormat?: string;
    readonly indent?: number;
}
ExportCellStyle members (8)
NameSignatureDescription
boldoptionalreadonly bold?: boolean;
italicoptionalreadonly italic?: boolean;
coloroptionalreadonly color?: string;

#rrggbb.

backgroundColoroptionalreadonly backgroundColor?: string;

#rrggbb.

textAlignoptionalreadonly textAlign?: 'start' | 'center' | 'end';
fontSizeoptionalreadonly fontSize?: number;
numberFormatoptionalreadonly numberFormat?: string;

Excel number format code (XLSX only), e.g. #,##0.00.

indentoptionalreadonly indent?: number;

Indent levels of the text (XLSX alignment indent; PDF one font size per level).