added properties
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user