Skip to content

Type Editor


Type Editor / @type-editor/tables / utils/col-count

utils/col-count

Functions

FunctionDescription

colCount

Gets the column index of the cell at the given position.

For cells that span multiple columns, this returns the index of the leftmost column the cell occupies.

Example

typescript
const column = colCount($cellPos);
console.log(`Cell is in column ${column}`);