Files
docx-js/ts/docx/run/text-run.ts

11 lines
210 B
TypeScript
Raw Normal View History

2017-03-08 21:49:41 +00:00
import { Run } from "../run";
import { Text } from "./run-components/text";
2016-03-30 03:50:53 +01:00
export class TextRun extends Run {
constructor(text: string) {
super();
2016-04-09 20:16:35 +01:00
this.root.push(new Text(text));
2016-03-30 03:50:53 +01:00
}
2017-03-08 21:49:41 +00:00
}