Files
docx-js/ts/docx/paragraph/page-break.ts
2017-09-21 14:56:46 +01:00

22 lines
439 B
TypeScript

// http://officeopenxml.com/WPtextSpecialContent-break.php
import { Run } from "../run";
import { Attributes, XmlComponent } from "../xml-components";
class Break extends XmlComponent {
constructor() {
super("w:br");
this.root.push(new Attributes({
type: "page",
}));
}
}
export class PageBreak extends Run {
constructor() {
super();
this.root.push(new Break());
}
}