Files
docx-js/ts/docx/paragraph/page-break.ts
2016-04-09 20:16:35 +01:00

20 lines
374 B
TypeScript

import {XmlComponent, Attributes} from "../xml-components";
import {Run} from "../run";
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());
}
}