Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.15.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.