renamed cell#push to cell#addContent

This commit is contained in:
felipe
2017-03-11 21:15:45 +01:00
parent 70f4613e1b
commit fb6a4383ff
2 changed files with 12 additions and 12 deletions

View File

@ -94,7 +94,7 @@ class TableCell extends XmlComponent {
this.root.push(this.properties);
}
public push(content: Paragraph | Table): TableCell {
public addContent(content: Paragraph | Table): TableCell {
this.root.push(content);
return this;
}
@ -111,7 +111,7 @@ class TableCell extends XmlComponent {
public createParagraph(text?: string): Paragraph {
const para = new Paragraph(text);
this.push(para);
this.addContent(para);
return para;
}
}