initial attempt at Table

This commit is contained in:
felipe
2017-03-07 19:22:10 +01:00
parent 0de30f6c59
commit f1fb0c4f22
6 changed files with 131 additions and 3 deletions

View File

@ -1,7 +1,9 @@
import { Paragraph } from "../paragraph";
import { Table } from "../table";
import { XmlComponent } from "../xml-components";
import { Body } from "./body";
import { DocumentAttributes } from "./document-attributes";
export class Document extends XmlComponent {
private body: Body;
@ -39,4 +41,8 @@ export class Document extends XmlComponent {
this.addParagraph(para);
return para;
}
public addTable(table: Table): void {
this.body.push(table);
}
}