API REFERENCE

replaceGridComponent

Replaces a registered custom component definition.

What does this API do?

Replaces a registered custom component definition.

Exact input and result types

typescript
replaceGridComponent<TKind extends GridComponentKind>(scope: GridComponentRegistrationScope, kind: TKind, name: string, definition: GridComponentDefinitionFor<
      TKind,
      GridData,
      unknown,
      unknown,
      unknown
    >): Promise<void>
ArgumentsRequiredType
scopeRequiredGridComponentRegistrationScope
kindRequiredTKind
nameRequiredstring
definitionRequiredGridComponentDefinitionFor< TKind, GridData, unknown, unknown, unknown >

The return type is Promise<void>.

Usage flow

After registering and initializing the Grid element, call grid.replaceGridComponent(…). 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