Files
docx-js/ts/docx/paragraph/page-break.ts
2017-03-08 20:35:26 +00:00

20 lines
376 B
TypeScript

import { Attributes, XmlComponent } 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());
}
}