Files
docx-js/src/file/paragraph/run/style.ts

14 lines
363 B
TypeScript
Raw Normal View History

2017-12-19 23:13:11 +00:00
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
2017-03-12 17:35:15 +01:00
class StyleAttributes extends XmlAttributeComponent<{val: string}> {
protected xmlKeys = {val: "w:val"};
}
export class Style extends XmlComponent {
constructor(styleId: string) {
super("w:rStyle");
this.root.push(new StyleAttributes({val: styleId}));
}
}