UNPKG

docx

Version:

Generate .docx documents with JavaScript (formerly Office-Clippy)

15 lines (13 loc) 445 B
import { XmlComponent } from "file/xml-components"; import { HeaderReferenceAttributes } from "./header-reference-attributes"; export class HeaderReference extends XmlComponent { constructor(order: string, refID: number) { super("w:headerReference"); this.root.push( new HeaderReferenceAttributes({ type: order, id: `rId${refID}`, }), ); } }