added properties

This commit is contained in:
Dolan Miu
2016-03-28 03:55:33 +01:00
parent 7a78dacf8c
commit 611d80af6d
5 changed files with 59 additions and 16 deletions

View File

@ -1,7 +1,12 @@
import {P, Attributes, ParagraphProperties, Run} from "./xml-components/p";
export class Paragraph {
private p: Array<string>;
private p: Array<P>;
constructor() {
this.p = ['stuff']
constructor(text?: string) {
this.p = new Array<P>();
this.p.push(new Attributes());
this.p.push(new ParagraphProperties());
this.p.push(new Run(text));
}
}