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

20 lines
481 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-03 01:44:18 +01:00
export class Body implements XmlComponent {
2016-03-31 23:01:20 +01:00
private body: Array<XmlComponent>;
2016-04-03 01:44:18 +01:00
xmlKeys = {
body: 'w:body'
}
2016-03-31 23:01:20 +01:00
constructor() {
this.body = new Array<XmlComponent>();
2016-04-06 01:08:53 +01:00
//this.body.push(new SectionProperties());
2016-03-31 23:01:20 +01:00
}
2016-04-03 01:44:18 +01:00
push(component: XmlComponent) {
2016-04-06 01:08:53 +01:00
this.body.splice(this.body.length - 1, 0, component);
}
2016-03-31 23:01:20 +01:00
}