Skip to content

api/format Functions

Functions exported from src/api/format.ts

formatCell

function formatCell(cell: CellObject, value?: any, options?: any): string

Parameters

NameTypeDescription
cellCellObjectThe cell object to format
value (optional)anyOptional override value; if omitted, uses cell.v
options (optional)anyOptional settings (e.g.

Returns

string

The formatted display string, or empty string for null/blank cells