Files
docx-js/src/file/table-of-contents/std-content.ts

13 lines
333 B
TypeScript
Raw Normal View History

import { Paragraph } from "file/paragraph";
import { XmlComponent } from "file/xml-components";
export class StdContent extends XmlComponent {
constructor() {
super("w:stdContent");
}
public addGeneratedContent(paragraph: Paragraph): void {
this.root.splice(this.root.length - 1, 0, paragraph);
}
}