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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”A function mapping any cell of that field to display text.
(value) => string