FormatDefinitionCollection / PartialFormatDefinitionCollection
Description
A FormatDefinitionCollection represents a collection of key/value pairs, where key is a string used to identify the corresponding FormatDefinition. It extends ResourceCollection<T>.
Property
|
Property |
Element |
Type |
Description |
|---|---|---|---|
|
key |
|
string |
The identifier of the |
|
|
value |
The |
Example
const formatDefinitions = {
euroCurrency: {
provider: new Xceed.CurrencyFormatter({ symbol: "\u20AC", position: "right" })
}
};
Default Values
The DataGrid provides the following default FormatDefinitions:
|
Key |
|---|
|
default |
|
number |
|
integer |
|
date |
|
time |
|
dateTime |
|
Percent |
Remarks
Setting the ColumnDefinition.type property to any of these keys makes the DataGrid use the corresponding default FormatterProvider or Formatter for that column.
A partial type/interface is an object in which properties are optional.