Skip to content

createFieldFormatter

createFieldFormatter(field, options?): (value) => string

Defined in: packages/model-dataset/src/frame/format-field.ts:29

A reusable formatter for one field’s cells.

Built once per column, never per cell: constructing an Intl.NumberFormat costs far more than using one, and a table renderer calls this per row.

FieldDescriptor

FormatFieldOptions

A function mapping any cell of that field to display text.

(value) => string