DecimalFormatter
Description
A DecimalFormatter is a class that implements a FormatterProvider and which formats numbers as decimal values.
Functions
|
Method |
Argument(s) |
Output |
Description |
|---|---|---|---|
|
constructor |
void |
Creates a |
Example
const formatDefinitions = {
decimal: { provider: new Xceed.DecimalFormatter({ precision: 2 }) }
};
The FormatDefinitionCollection must then be provided to the DataGrid through the DataGridOptions.
Need help? Contact us!