added bullet
This commit is contained in:
@ -3,17 +3,9 @@ import {ThematicBreak} from "./border";
|
||||
import {PageBreak} from "./page-break";
|
||||
import {TextRun} from "./text-run";
|
||||
import {ParagraphProperties} from "./properties";
|
||||
|
||||
class Style {
|
||||
private pStyle: Array<XmlComponent>;
|
||||
|
||||
constructor(type: string) {
|
||||
this.pStyle = new Array<XmlComponent>();
|
||||
this.pStyle.push(new Attributes({
|
||||
val: type
|
||||
}));
|
||||
}
|
||||
}
|
||||
import {TabStop} from "../tab-stop";
|
||||
import {Style} from "./style";
|
||||
import {NumberProperties} from "./unordered-list";
|
||||
|
||||
class Alignment {
|
||||
private jc: Array<XmlComponent>;
|
||||
@ -102,4 +94,15 @@ export class Paragraph {
|
||||
this.properties.push(new PageBreak());
|
||||
return this;
|
||||
}
|
||||
|
||||
addTabStop(tabStop: TabStop) {
|
||||
this.properties.push(tabStop);
|
||||
return this;
|
||||
}
|
||||
|
||||
bullet() {
|
||||
this.properties.push(new Style("ListParagraph"));
|
||||
this.properties.push(new NumberProperties());
|
||||
return this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user