Files
docx-js/src/file/document/body/section-properties/header-reference/header-reference.ts

15 lines
431 B
TypeScript
Raw Normal View History

2018-01-29 02:56:35 +00:00
import { XmlComponent } from "file/xml-components";
import { HeaderReferenceAttributes } from "./header-reference-attributes";
export class HeaderReference extends XmlComponent {
2018-05-18 09:21:27 -06:00
constructor(order: string, refID: number) {
2018-01-29 02:56:35 +00:00
super("w:headerReference");
this.root.push(
new HeaderReferenceAttributes({
2018-05-12 20:04:54 -04:00
type: order,
2018-05-18 09:21:27 -06:00
id: `rId${refID}`,
2018-01-29 02:56:35 +00:00
}),
);
}
}