bullet points update

This commit is contained in:
ilmar
2018-04-05 16:50:25 +03:00
parent 80f09ac10b
commit 919327ed08
6 changed files with 146 additions and 154 deletions

View File

@ -129,9 +129,10 @@ export class Paragraph extends XmlComponent {
return this;
}
public bullet(): Paragraph {
public bullet(indentLevel: number): Paragraph {
indentLevel = indentLevel || 0;
this.properties.push(new Style("ListParagraph"));
this.properties.push(new NumberProperties(1, 0));
this.properties.push(new NumberProperties(1, indentLevel));
return this;
}