Files
docx-js/src/file/document/body/body.ts

15 lines
466 B
TypeScript
Raw Normal View History

import { XmlComponent } from "file/xml-components";
2018-01-24 13:09:34 +00:00
import { SectionProperties, SectionPropertiesOptions } from "./section-properties/section-properties";
2017-09-19 15:39:14 +01:00
export class Body extends XmlComponent {
2018-01-24 13:09:34 +00:00
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
2017-09-19 15:39:14 +01:00
super("w:body");
2018-01-25 01:21:03 +00:00
2018-01-28 20:34:49 +00:00
this.root.push(new SectionProperties(sectionPropertiesOptions));
2017-09-19 15:39:14 +01:00
}
public push(component: XmlComponent): void {
this.root.push(component);
}
}