API REFERENCE

getCellEditorInstance

Reads the mounted cell editor instance and context, or null if no editor exists.

What does this API do?

Reads the mounted cell editor instance and context, or null if no editor exists.

Exact input and result types

typescript
getCellEditorInstance(): Promise<
    GridMountedComponentLookup<
      GridEditorInstance<GridData, unknown, unknown>,
      GridEditorParams<GridData, unknown, unknown>,
      HTMLElement
    >
    | null
  >
ArgumentsRequiredType

The return type is `Promise< GridMountedComponentLookup< GridEditorInstance<GridData, unknown, unknown>, GridEditorParams<GridData, unknown, unknown>, HTMLElement > | null >`.

Usage flow

After registering and initializing the Grid element, call grid.getCellEditorInstance(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Read related types

Feature explanations and examples