added xmlKeys to xmlcomponent
This commit is contained in:
@ -3,6 +3,10 @@ import {XmlComponent, Attributes} from "../xml-components";
|
||||
class Border implements XmlComponent {
|
||||
private bottom: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
bottom: 'w:bottom'
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.bottom = new Array<XmlComponent>();
|
||||
this.bottom.push(new Attributes({
|
||||
@ -14,9 +18,13 @@ class Border implements XmlComponent {
|
||||
}
|
||||
}
|
||||
|
||||
export class ThematicBreak {
|
||||
export class ThematicBreak implements XmlComponent {
|
||||
private pBdr: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
pBdr: 'w:pBdr'
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.pBdr = new Array<XmlComponent>();
|
||||
this.pBdr.push(new Border());
|
||||
|
Reference in New Issue
Block a user