API REFERENCE

focusCellRendererInstance

Moves focus into a mounted cell renderer and returns the result.

What does this API do?

Moves focus into a mounted cell renderer and returns the result.

Exact input and result types

typescript
focusCellRendererInstance(rowId: GridRowId, colId: string, direction: 'in' | 'out'): Promise<boolean>
ArgumentsRequiredType
rowIdRequiredGridRowId
colIdRequiredstring
directionRequired'in' | 'out'

The return type is Promise<boolean>.

Usage flow

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