Skip to main content
Module

x/docxml/mod.ts>Tab

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class Tab
extends Component<TabProps, TabChild>
import { Tab } from "https://deno.land/x/docxml@5.5.2/mod.ts";

A component that represents a tab space in a DOCX document. Place this in one of the <Text>, <TextAddition> or <TextDeletion> components.

Methods

toNode(_ancestry: ComponentAncestor[]): Node

Creates an XML DOM node for this component instance.

Static Properties

readonly
children: string[]
readonly
mixed: boolean

Static Methods

fromNode(_node: Node): Tab

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.