CurrencyFormatter

Description

A CurrencyFormatter is a class that extends the DecimalFormatter class and which formats numbers as currency values.

Functions

Method

Argument(s)

Output

Description

constructor

PartialCurrencyFormatterOptions

void

Creates a CurrencyFormatter that formats numbers in accordance to the formatting options it was given.

Example

const formatDefinitions = {

  euroCurrency: { provider: new Xceed.CurrencyFormatter({ symbol: "\u20AC", position: "right" }) },

      };

The FormatDefinitionCollection must then be provided to the DataGrid through the DataGridOptions.