Skip to content

Type Editor


Type Editor / @type-editor/tables / utils/column-is-header

utils/column-is-header

Functions

FunctionDescription

columnIsHeader

Checks if an entire column consists only of header cells.

This function iterates through all rows of the table and checks if every cell in the specified column is a header cell.

Example

typescript
const map = TableMap.get(tableNode);
if (columnIsHeader(map, tableNode, 0)) {
  console.log("First column is a header column");
}