View as Markdown

API reference: @salmonui/data-grid/engine/locale

formatValuefunction

import { formatValue } from '@salmonui/data-grid/engine/locale';
function formatValue(value: unknown, format?: string | FormatOptions, options?: FormatterOptions & {
    readonly type?: ColumnType;
}): string;

Formats a value like a column format would (template helper). Formatters are shared per (locale, currency, time zone).