Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/utilities/tables.ts>TableGridModel

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class TableGridModel
import { TableGridModel } from "https://deno.land/x/docxml@5.13.0/src/utilities/tables.ts";

A conceptual description of the table that makes it easier to reason about it.

Constructors

new
TableGridModel(table: Table)

Methods

getCellInfo(cell: Cell): CellInfo

Return the position and spanning of a given node, keeping all colspans/rowspans of other cels into account.

getCellsInRow(row: number)

Get the number of columns in a row, even if some cells span multiple columns.

getNodeAtCell(column: number, row: number): Cell | null

Return the node belonging to this column/row coordinate, taking all colspans/rowspans into account.