Skip to content

TableEditor.receiveCellFocus method

TableEditor › receiveCellFocus

Unofficial

Focus a cell and create a cell editor for it.

Signature:

receiveCellFocus(row: number, col: number, selectionFn?: (view: EditorView) => CmEditorSelection, isUserInitiated?: boolean): TableCellEditor

Parameters:

ParameterTypeDescription
rownumberRow index.
colnumberColumn index.
selectionFn?(view: EditorView) => CmEditorSelectionOptional function computing the selection inside the cell editor.
isUserInitiated?booleanWhether the focus was triggered by the user.

Returns: TableCellEditor — The table cell editor.