docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
15 lines (12 loc) • 355 B
text/typescript
// http://officeopenxml.com/WPparagraph.php
import { Attributes, XmlComponent } from "file/xml-components";
export class OutlineLevel extends XmlComponent {
constructor(public readonly level: number) {
super("w:outlineLvl");
this.root.push(
new Attributes({
val: level,
}),
);
}
}