View as Markdown

API reference: @salmonui/core/format

createValueFormatterfunction

import { createValueFormatter } from '@salmonui/core/format';
function createValueFormatter(descriptor: FormatDescriptor | null, type: ColumnType, env: FormatEnvironment): (value: unknown) => string;

Builds the value → display string function for a column.