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

x/docxml/src/components/Table.ts>Table

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

A component that represents a table.

Properties

readonly
model: TableGridModel

A conceptual description of how the cells, columns, rows and spans of this table make sense.

Exposed so it can be accessed by Row and Cell descendants, but not meant to be used otherwise.

Methods

toNode(ancestry: ComponentAncestor[]): Promise<Node>

Creates an XML DOM node for this component instance.

Static Properties

readonly
children: string[]
readonly
mixed: boolean

Static Methods

fromNode(node: Node, context: ComponentContext): Table

Instantiate this component from the XML in an existing DOCX file.

matchesNode(node: Node): boolean

Asserts whether or not a given XML node correlates with this component.