Files
docx-js/src/file/document/body/body.ts
2018-01-25 01:21:03 +00:00

17 lines
489 B
TypeScript

import { XmlComponent } from "file/xml-components";
import { SectionProperties, SectionPropertiesOptions } from "./section-properties/section-properties";
export class Body extends XmlComponent {
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
super("w:body");
this.root.push(
new SectionProperties(sectionPropertiesOptions),
);
}
public push(component: XmlComponent): void {
this.root.push(component);
}
}