EditorProvider

Description

An EditorProvider is an interface that can be implemented to create a custom editor.

Functions

Function

Arguments

Output

Description

init

EditorContext

void

Initializes an EditorProvider with the received EditorContext.

This is where an HTMLElement could be created if needed.

getHtmlElement

none

HTMLElement

Used to return an HTMLElement which is used to display the editor in a data cell.

setFocus?

none

void

A callback function that is called the first time the editor is displayed which allows specifying which HTMLElement, contained in the editor has the focus.

getValue

none

any

A callback function that is called by the DataGrid in order to retrieve the final edited value that will be pushed on the data item.

destroy?

none

void

A callback function that is called when the editor of a data cell is being destroyed.  Allows the release of any resources or object that may have been referenced by the EditorProvider.