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

PartialDecimalFormatterOptions

void

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

Example

const formatDefinitions = {

  decimal: { provider: new Xceed.DecimalFormatter({ precision: 2 }) }

      };

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