Files
docx-js/src/file/paragraph/links/outline-level.ts
Dolan Miu 982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00

15 lines
356 B
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,
}),
);
}
}