add ID property to Num and test Numbering methods

This commit is contained in:
felipe
2017-03-08 17:28:44 +01:00
parent 709ff25702
commit 6b702c4bd6
2 changed files with 38 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class NumAttributes extends XmlAttributeComponent {
}
export class Num extends XmlComponent {
public id: number;
constructor(numId: number, abstractNumId: number) {
super("w:num");
@ -31,5 +32,11 @@ export class Num extends XmlComponent {
numId: numId,
}));
this.root.push(new AbstractNumId(abstractNumId));
this.id = numId;
}
public clearVariables(): void {
super.clearVariables();
delete this.id;
}
}