20 lines
521 B
TypeScript
20 lines
521 B
TypeScript
![]() |
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);
|
||
|
}
|
||
|
}
|