| id | Format.formatter |
|---|---|
| type | function(value) |
A function that converts numeric or date-time values to a string.
The value to be formatted.
The value after formatting.
If none of the predefined formats meet your requirements, use this function to specify a custom format. If formatter is the only field that you need to specify in the format object, assign the function straight to the format property as shown below.
<!--JavaScript-->format: function (value) {
// ...
return formattedValue;
}
[important] If you allow users to edit the formatted value, implement the parser function to convert the value back to a number or date and time.