PercentFormatter

Description

A PercentFormatter is a class that extends the DecimalFormatter class and which formats numbers as percent values.

Functions

Method

Argument(s)

Output

Description

constructor

PartialPercentFormatterOptions

void

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

Example

const formatDefinitions = {

  percent: { provider: new Xceed.PercentFormatter() },

      };

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