Files
docx-js/src/file/document/body/section-properties/header-reference/header-reference.ts
2018-05-18 09:21:27 -06:00

15 lines
431 B
TypeScript

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}`,
}),
);
}
}