Currency column type
`type: 'currency'` builds on the number type with a currency code. The code can be fixed per column or read per row from another field. Mixed-currency columns display the correct symbol per row and expose an opt-in rule for whether they sort by raw amount.
Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An invoices grid with a currency column reading currencyField 'ccy' and mixed EUR, USD and JPY rows.
Expected behavior
JPY rows show no decimals and EUR and USD rows show two. Switching to minor units divides stored integers by the currency's minor-unit exponent before display.
Planned API surface
type'currency'currencycurrencyFieldcurrencyDisplaylocaleminorUnitsAcceptance criteria
- Fraction digits default to the ISO 4217 minor units of each row's currency. (pending)
- An invalid currency code renders the raw number plus a warning icon. It does not throw. (pending)
- The minorUnits mode converts integer storage to decimal display without floating-point drift. Values are verified with string-based tests. (pending)
- The docs state clearly that sorting a mixed-currency column sorts by raw amount and does not convert between currencies. (pending)