using the new attributes
This commit is contained in:
@ -12,19 +12,13 @@ interface StyleAttributesProperties {
|
|||||||
export class StyleAttributes extends XmlAttributeComponent {
|
export class StyleAttributes extends XmlAttributeComponent {
|
||||||
private _attr: Object;
|
private _attr: Object;
|
||||||
|
|
||||||
constructor(properties?: StyleAttributesProperties) {
|
constructor(properties: StyleAttributesProperties) {
|
||||||
super({
|
super({
|
||||||
type: "w:type",
|
type: "w:type",
|
||||||
styleId: "w:styleId",
|
styleId: "w:styleId",
|
||||||
default: "w:default",
|
default: "w:default",
|
||||||
customStyle: "w:customStyle",
|
customStyle: "w:customStyle",
|
||||||
val: "w:val"
|
val: "w:val"
|
||||||
});
|
}, properties);
|
||||||
|
|
||||||
this.root = properties;
|
|
||||||
|
|
||||||
if (!properties) {
|
|
||||||
this.root = {};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user