Summary

  • AdapTable provides a number of Display Formats to be used with Numeric Columns

AdapTable ships with a number of System Number Display Formats.

These are designed to provide Display Formats for numeric columns.

They are contained in the Number Formatter object defined as follows:

PropertyDescription
AbsReturns absolute value of cell value
CeilingReturns smallest integer greater than cell value
ContentReplaces cell value with supplied value (that can contain Template Literals)
EmptyShow nothing in cell (but underlying value remains)
FloorReturns largest integer cell value
FractionDigitsNumber of digits to show in Fractions (up to 20)
FractionSeparatorSeparator to use in fractions
IntegerDigitsNumber of digits to show for Integers (up to 20)
IntegerSeparatorSeparator to use in Integers
MultiplierMultiplier to use on cell value
ParenthesesShows negative numbers in parentheses
PrefixPrefix to use before cell value
RoundRounds cell value
SuffixSuffix to use after cell value
TruncateTruncates cell value

Numeric Presets

AdapTable provides 5 preset numeric formatters in the Format Column Wizard.

These are designed to help users easily create Display Format for the more common use cases:

Numeric PresetRaw ValueDisplay Format
Percentage0.5432154.32%
K (Thousand)123456123.456K
M (Million)123456789123.456789M
Dollar123.4567$123.46
Sterling123.4567£123.46
Column Formatting: Numeric Display Formats
Fork
  • This example shows 3 Display Formats on Numeric columns:
    • Open/Total Issues, a Calculated Column, has a suffix of % and is limited to 2 decimal places
    • Issue Change is given a negative parentheses format
    • GitHub Stars has a K for 1000 format

Expand to see the Numeric Display Formats