Files
docx-js/ts/docx/document/body/index.ts
2016-05-26 15:08:34 +01:00

16 lines
430 B
TypeScript

import {XmlComponent, Attributes} from "../../xml-components";
import {SectionProperties} from "./section-properties";
export class Body extends XmlComponent {
constructor() {
super("w:body");
// this.root.push(new SectionProperties()); not actually needed
}
push(component: XmlComponent) {
// this.root.splice(this.body.length - 1, 0, component);
this.root.push(component);
}
}