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

11 lines
273 B
TypeScript
Raw Normal View History

2016-03-30 00:28:05 +01:00
import {Run, Text} from "../xml-components";
import {ParagraphProperties} from "./properties";
export class TextRun extends Run {
constructor(text: string) {
super();
this.r.push(new ParagraphProperties());
this.r.push(new Text(text));
}
}