Files
docx-js/ts/docx/document/body/index.ts

16 lines
428 B
TypeScript
Raw Normal View History

2016-03-31 23:01:20 +01:00
import {XmlComponent, Attributes} from "../../xml-components";
import {SectionProperties} from "./section-properties";
2016-04-09 20:16:35 +01:00
export class Body extends XmlComponent {
2016-04-03 01:44:18 +01:00
2016-03-31 23:01:20 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:body");
//this.root.push(new SectionProperties()); not actually needed
2016-03-31 23:01:20 +01:00
}
2016-04-03 01:44:18 +01:00
push(component: XmlComponent) {
2016-04-09 20:16:35 +01:00
//this.root.splice(this.body.length - 1, 0, component);
this.root.push(component);
}
2016-03-31 23:01:20 +01:00
}