Skip to content

Type Editor


Type Editor / @type-editor/tables / utils/move-column

utils/move-column

Interfaces

InterfaceDescription

MoveColumnParams

Parameters for moving a column within a table.

Functions

FunctionDescription

moveColumn

Moves a column from the origin index to the target index within a table.

This function handles column movement by:

  1. Finding the table at the given position
  2. Determining the full range of columns to move (accounting for merged cells)
  3. Performing the move operation by transposing the table, moving rows, and transposing back
  4. Optionally selecting the moved column