UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

27 lines (23 loc) 882 B
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; export interface ILatentStyleExceptionAttributesProperties { readonly name?: string; readonly uiPriority?: string; readonly qFormat?: string; readonly semiHidden?: string; readonly unhideWhenUsed?: string; } export class LatentStyleExceptionAttributes extends XmlAttributeComponent<ILatentStyleExceptionAttributesProperties> { protected readonly xmlKeys = { name: "w:name", uiPriority: "w:uiPriority", qFormat: "w:qFormat", semiHidden: "w:semiHidden", unhideWhenUsed: "w:unhideWhenUsed", }; } export class LatentStyleException extends XmlComponent { constructor(attributes: ILatentStyleExceptionAttributesProperties) { super("w:lsdException"); this.root.push(new LatentStyleExceptionAttributes(attributes)); } }