add NumberValueElement, representing a simple element with a single number value <foo w:val="1234"/>

This commit is contained in:
Tom Hunkapiller
2021-05-24 21:05:29 +03:00
parent c3e92c0709
commit 22e62ed950

View File

@ -44,3 +44,11 @@ export class StringValueElement extends XmlComponent {
this.root.push(new Attributes({ val })); this.root.push(new Attributes({ val }));
} }
} }
// This represents various number element types.
export class NumberValueElement extends XmlComponent {
constructor(name: string, val: number) {
super(name);
this.root.push(new Attributes({ val }));
}
}