Skip to main content
Module

x/docxml/mod.ts>Section

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
class Section
extends Component<SectionProps, SectionChild>
import { Section } from "https://deno.land/x/docxml@2.4.2/mod.ts";

A component that represents a DOCX section, which could have its own page sizing options and so on.

In normal OOXML this information belongs at either the end of the document, or inside the formatting options of the last paragraph belonging to that section. This component will smooth that over in such a way that you can simply put <Paragraph> (etc.) inside <Section>.

Methods

toNode(ancestry: ComponentAncestor[])

Static Properties

readonly
children: string[]
readonly
mixed: boolean

Static Methods

fromNode(node: Node): Section
matchesNode(node: Node): boolean