FormatDefinition / PartialFormatDefinition

Description

A FormatDefinition is an interface that exposes properties to allow the definition of a formatter for the data. At this time, the DataGrid supports a format to be a Formatter or a FormatterProvider.

Properties

Property

Type

Description

format?

Formatter

Represents a function that takes a FormatContext and returns a formatted string

provider?

FormatterProvider

An object that exposes a Formatter through its format property.

Remarks

A FormatDefinition can be provided through the FormatDefinitionCollection.

A partial type/interface is an object in which properties are optional.