created drawing file and refactored run components in components folder
This commit is contained in:
11
ts/docx/run/run-components/text.ts
Normal file
11
ts/docx/run/run-components/text.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class Text extends XmlComponent {
|
||||
|
||||
constructor(text: string) {
|
||||
super("w:t");
|
||||
if (text) {
|
||||
this.root.push(text);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user