Files
docx-js/ts/docx/paragraph/page-break.ts
2017-03-08 21:36:09 +00:00

21 lines
380 B
TypeScript

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());
}
}