EditorDefinition / PartialEditorDefinition

Description

An EditorDefinition is an interface that exposes properties to allow the definition of an editor to edit data. At this time, the DataGrid supports an editor as a function or a constructor.

Properties

Property

Type

Description

factory?

(context: EditorContext) => EditorProvider

 

A function receiving an EditorContext relative to the current data, which outputs an EditorProvider.

ctor?

new () => EditorProvider

 

The constructor of an object, which outputs an EditorProvider.

Remarks

An EditorDefinition can be provided through the EditorDefinitionCollection.

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