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 | undefined, focusCol?: number | undefined, selectionFn?: ((view: EditorView) => EditorSelection) | undefined): void

Parameters:

ParameterTypeDescription
focusRow?number | undefinedRow to focus after dispatch.
focusCol?number | undefinedColumn to focus after dispatch.
selectionFn?((view: EditorView) => EditorSelection) | undefinedOptional function computing the selection inside the focused cell.

Returns: void