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;
}
| Name | Signature | Description |
|---|---|---|
boldoptional | readonly bold?: boolean; | |
italicoptional | readonly italic?: boolean; | |
coloroptional | readonly color?: string; |
|
backgroundColoroptional | readonly backgroundColor?: string; |
|
textAlignoptional | readonly textAlign?: 'start' | 'center' | 'end'; | |
fontSizeoptional | readonly fontSize?: number; | |
numberFormatoptional | readonly numberFormat?: string; | Excel number format code (XLSX only), e.g. |
indentoptional | readonly indent?: number; | Indent levels of the text (XLSX alignment indent; PDF one font size per level). |