Skip to content

TableEditor.setCellFocus method

TableEditor › setCellFocus

Unofficial

Focus a cell, rebuilding the table first if its source is malformed.

Signature:

setCellFocus(row: number, col: number, selectionFn?: (view: EditorView) => CmEditorSelection): void

Parameters:

ParameterTypeDescription
rownumberRow index.
colnumberColumn index.
selectionFn?(view: EditorView) => CmEditorSelectionOptional function computing the selection inside the cell editor.

Returns: void