Skip to content

TableEditor.dispatchTable method

TableEditor › dispatchTable

Unofficial

Rebuild the table and dispatch it to the editor as a single change.

Signature:

dispatchTable(focusRow?: number, focusCol?: number, selectionFn?: (view: EditorView) => CmEditorSelection): void

Parameters:

ParameterTypeDescription
focusRow?numberRow to focus after dispatch.
focusCol?numberColumn to focus after dispatch.
selectionFn?(view: EditorView) => CmEditorSelectionOptional function computing the selection inside the focused cell.

Returns: void