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) => EditorSelection) | undefined, isUserInitiated?: boolean | undefined): TableCellEditor

Parameters:

ParameterTypeDescription
rownumberRow index.
colnumberColumn index.
selectionFn?((view: EditorView) => EditorSelection) | undefinedOptional function computing the selection inside the cell editor.
isUserInitiated?boolean | undefinedWhether the focus was triggered by the user.

Returns: TableCellEditorThe table cell editor.