EditorDefinitionCollection / PartialEditorDefinitionCollection
Description
An EditorDefinitionCollection represents a collection of key/value pairs, where key is a string used to identify the corresponding EditorDefinition. It extends ResourceCollection<T>.
Properties
|
Property |
Element |
Type |
Description |
|---|---|---|---|
|
key |
|
string |
The identifier of the |
|
|
value |
The |
Example
const editorDefinitions = {
dataCellComboBoxEditor: {
factory: (context) => new ComboBoxEditorProvider(distinctEmployees)
}
};
Default Values
The DataGrid provides the following default EditorDefinitions:
|
Key |
EditorProvider |
|---|---|
|
default |
TextEditorProvider |
|
boolean |
BooleanEditorProvider |
|
string |
TextEditorProvider |
|
number |
NumberEditorProvider |
|
Integer |
IntegerEditorProvider |
|
date |
DateEditorProvider |
|
time |
TimeEditorProvider |
|
dateTime |
DateTimeEditorProvider |
Remarks
Setting the ColumnDefinition.type property to any of these keys makes the DataGrid use the corresponding default EditorProvider for that column.
A partial type/interface is an object in which properties are optional.