This example explains how to provide custom formatting to display data.
(currency, dates etc.)
What is shown in this sample:Shows how to
use default formatters, and how to provide custom formatters for date and time. The code makes
use of the formatDefinitions property.The Currency, Decimal and
Percent columns make use of the formatters property to change their format,
whereas the Number column makes
use of the type property to do the same. These all make use of default formatters.The Date and Time columns make use of both default and custom formatters,
through the formatters property. The Data and Time column makes use of a
default formatter, through the type property.