Files
docx-js/src/file/paragraph/links/outline-level.ts

15 lines
356 B
TypeScript
Raw Normal View History

2019-01-15 15:39:48 +01:00
// http://officeopenxml.com/WPparagraph.php
import { Attributes, XmlComponent } from "@file/xml-components";
2019-01-15 15:39:48 +01:00
export class OutlineLevel extends XmlComponent {
2019-06-12 01:03:36 +01:00
constructor(public readonly level: number) {
2019-01-15 15:39:48 +01:00
super("w:outlineLvl");
2019-06-12 01:03:36 +01:00
2019-01-15 15:39:48 +01:00
this.root.push(
new Attributes({
val: level,
}),
);
}
}