first simple version of TOC working
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
// import { TableOfContentsProperties } from "./properties";
|
||||
import { Paragraph } from "../paragraph";
|
||||
import { Paragraph } from "file/paragraph";
|
||||
import { Begin, End, Separate } from "file/paragraph/run/field";
|
||||
import { TableOfContentsInstruction } from "./instruction";
|
||||
|
||||
export class TableOfContents extends Paragraph {
|
||||
// private readonly tocProperties: TableOfContentsProperties;
|
||||
@ -7,5 +9,9 @@ export class TableOfContents extends Paragraph {
|
||||
constructor(/*tocProperties?: TableOfContentsProperties*/) {
|
||||
super();
|
||||
// this.tocProperties = tocProperties || new TableOfContentsProperties();
|
||||
this.root.push(new Begin());
|
||||
this.root.push(new Separate());
|
||||
this.root.push(new TableOfContentsInstruction());
|
||||
this.root.push(new End());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user