added bullet
This commit is contained in:
34
ts/docx/paragraph/unordered-list.ts
Normal file
34
ts/docx/paragraph/unordered-list.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import {Style} from "./style";
|
||||
|
||||
export class NumberProperties implements XmlComponent {
|
||||
private numPr: Array<XmlComponent>;
|
||||
|
||||
constructor() {
|
||||
this.numPr = new Array<XmlComponent>();
|
||||
this.numPr.push(new IndentLevel(0));
|
||||
this.numPr.push(new NumberId(1));
|
||||
}
|
||||
}
|
||||
|
||||
export class IndentLevel implements XmlComponent {
|
||||
private ilvl: Array<XmlComponent>;
|
||||
|
||||
constructor(level: number) {
|
||||
this.ilvl = new Array<XmlComponent>();
|
||||
this.ilvl.push(new Attributes({
|
||||
val: level
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
export class NumberId implements XmlComponent {
|
||||
private ilvl: Array<XmlComponent>;
|
||||
|
||||
constructor(id: number) {
|
||||
this.ilvl = new Array<XmlComponent>();
|
||||
this.ilvl.push(new Attributes({
|
||||
val: id
|
||||
}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user