Add footnotes class

This commit is contained in:
Dolan
2018-06-11 00:45:21 +01:00
parent b5b96506ae
commit 8cb8d3514a
5 changed files with 128 additions and 1 deletions

View File

@ -0,0 +1,19 @@
import { XmlComponent } from "file/xml-components";
import { Paragraph } from "../../paragraph";
import { FootnoteAttributes } from "./footnote-attributes";
export class FootNote extends XmlComponent {
constructor(id: number, type?: string) {
super("w:footnote");
this.root.push(
new FootnoteAttributes({
type: type,
id: id,
}),
);
}
public addParagraph(paragraph: Paragraph): void {
this.root.push(paragraph);
}
}