added xmlKeys to xmlcomponent

This commit is contained in:
Dolan Miu
2016-04-03 01:44:18 +01:00
parent a70e82a7d0
commit 69edfcc0c9
24 changed files with 137 additions and 59 deletions

View File

@ -1,5 +1,5 @@
export interface XmlComponent {
xmlKeys: Object;
}
interface AttributesProperties {
@ -26,6 +26,8 @@ interface AttributesProperties {
export class Attributes implements XmlComponent {
private _attrs: Object;
xmlKeys = {};
constructor(properties?: AttributesProperties) {
this._attrs = properties
@ -38,6 +40,10 @@ export class Attributes implements XmlComponent {
export class Text implements XmlComponent {
private t: string;
xmlKeys = {
t: 'w:t'
}
constructor(text: string) {
this.t = text;
}