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) => EditorSelection) | undefined): void

Parameters:

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

Returns: void