Files
docx-js/ts/docx/paragraph/border.ts

22 lines
450 B
TypeScript
Raw Normal View History

2016-03-30 00:28:05 +01:00
import {XmlComponent, Attributes} from "../xml-components";
2016-03-29 04:50:23 +01:00
2016-04-09 20:16:35 +01:00
class Border extends XmlComponent {
2016-04-03 01:44:18 +01:00
2016-03-29 04:50:23 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:bottom");
this.root.push(new Attributes({
2016-03-29 04:50:23 +01:00
color: "auto",
space: "1",
val: "single",
sz: "6"
}));
}
}
2016-04-09 20:16:35 +01:00
export class ThematicBreak extends XmlComponent {
2016-04-03 01:44:18 +01:00
2016-03-29 04:50:23 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:pBdr");
this.root.push(new Border());
2016-03-29 04:50:23 +01:00
}
}