Files
docx-js/ts/docx/document/body/index.ts
2016-04-06 01:08:53 +01:00

20 lines
481 B
TypeScript

import {XmlComponent, Attributes} from "../../xml-components";
import {SectionProperties} from "./section-properties";
export class Body implements XmlComponent {
private body: Array<XmlComponent>;
xmlKeys = {
body: 'w:body'
}
constructor() {
this.body = new Array<XmlComponent>();
//this.body.push(new SectionProperties());
}
push(component: XmlComponent) {
this.body.splice(this.body.length - 1, 0, component);
}
}