added #setNumbering method to paragraph
This commit is contained in:
@ -6,6 +6,7 @@ import {ParagraphProperties} from "./properties";
|
||||
import {MaxRightTabStop, LeftTabStop} from "./tab-stop";
|
||||
import {Style} from "./style";
|
||||
import {NumberProperties} from "./unordered-list";
|
||||
import { Num } from "../../numbering/num";
|
||||
|
||||
class Alignment extends XmlComponent {
|
||||
|
||||
@ -109,4 +110,10 @@ export class Paragraph extends XmlComponent {
|
||||
this.properties.push(new NumberProperties(1, 0));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public setNumbering(numbering: Num, indentLevel: number): Paragraph {
|
||||
this.properties.push(new Style("ListParagraph"));
|
||||
this.properties.push(new NumberProperties(numbering.id, indentLevel));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user