format
Parameters
format
Turns the value value extracted into the text the cell shows. Formatting here rather than inside value is what keeps a column's raw value raw: { it.salary } reads $92,000 and still sorts numerically, with no comparator to make up for a value that had become a string. Clipboard copy takes the formatted text — what you see is what you copy — while an editor still opens on the raw value, or on editValue. Ignored when cellContent draws the cell itself, though copy still uses it. DataTableFormatters has ready-made ones for money, numbers, percentages, dates, and booleans.