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

16 lines
432 B
TypeScript
Raw Normal View History

2017-03-08 20:35:26 +00:00
import { Attributes, XmlComponent } from "../../xml-components";
2016-03-31 23:01:20 +01:00
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");
2016-05-26 15:08:34 +01:00
// 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-05-26 15:08:34 +01:00
// this.root.splice(this.body.length - 1, 0, component);
2016-04-09 20:16:35 +01:00
this.root.push(component);
}
2016-03-31 23:01:20 +01:00
}