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

23 lines
450 B
TypeScript
Raw Normal View History

2017-03-08 20:35:26 +00:00
import { Attributes, XmlComponent } 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",
2017-03-08 21:36:09 +00:00
sz: "6",
2016-03-29 04:50:23 +01:00
}));
}
}
2016-04-09 20:16:35 +01:00
export class ThematicBreak extends XmlComponent {
2016-05-26 15:08:34 +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
}
2017-03-08 21:36:09 +00:00
}