Files
docx-js/ts/styles/style/index.ts
2016-04-09 20:16:35 +01:00

14 lines
360 B
TypeScript

import {XmlComponent} from "../../docx/xml-components";
import {StyleAttributes} from "./attributes";
export class Style extends XmlComponent {
constructor(attributes: StyleAttributes) {
super("w:style");
this.root.push(attributes);
}
push(styleSegment: XmlComponent): void {
this.root.push(styleSegment);
}
}