DocsAPI reference
Column settings
Per-column export settings, read from meta.rowpine on your TanStack column definitions.
RowpineColumnMeta<TData = any>
typePer-column export settings, read from columnDef.meta.rowpine.
Properties
| Name | Type | Description |
|---|---|---|
headeroptional | string | Header text in the file. Default: the column's string header, else its id. |
numFmtoptional | string | Excel number format, e.g. '"$"#,##0.00' or 'yyyy-mm-dd'. |
formatoptional | ((value: unknown, row: TData) => string) | Display text for PDF. CSV writes the raw value. Default: numbers and dates in the browser locale. |
widthoptional | number | Column width in px. Default: the column's TanStack size. |
alignoptional | "left" | "center" | "right" | Horizontal alignment. Default: right for numbers, left otherwise. |
cellStyleoptional | ((value: unknown, row: TData) => CellStyle | undefined) | Cell colors, e.g. for conditional formatting. |
excludeoptional | boolean | Leave this column out of every export. Default: true for display columns (no accessor, such as checkboxes and row actions), false otherwise. |
CellStyle
typeColors and weight for one cell or a whole row, in Excel and PDF exports. CSV ignores it.
Properties
| Name | Type | Description |
|---|---|---|
filloptional | string | Background color, '#rrggbb'. The Excel writer ignores other forms. |
coloroptional | string | Text color, '#rrggbb'. The Excel writer ignores other forms. |
boldoptional | boolean | Bold text. |
Was this page helpful?
Thanks. To tell us more, write to info@jqwidgets.com.