Files
docx-js/ts/styles/style/attributes.ts

24 lines
626 B
TypeScript
Raw Normal View History

2016-04-09 04:27:49 +01:00
import {XmlComponent} from "../../docx/xml-components";
2016-05-03 04:31:08 +01:00
import {XmlAttributeComponent} from "../../docx/xml-components";
2016-04-09 04:27:49 +01:00
interface StyleAttributesProperties {
type?: string;
styleId?: string;
default?: string;
customStyle?: string;
2016-05-03 04:31:08 +01:00
val?: string;
2016-04-09 04:27:49 +01:00
}
2016-05-03 04:31:08 +01:00
export class StyleAttributes extends XmlAttributeComponent {
2016-04-09 04:27:49 +01:00
private _attr: Object;
2016-05-19 23:05:52 +01:00
constructor(properties: StyleAttributesProperties) {
2016-05-03 04:31:08 +01:00
super({
type: "w:type",
styleId: "w:styleId",
default: "w:default",
customStyle: "w:customStyle",
val: "w:val"
2016-05-19 23:05:52 +01:00
}, properties);
2016-04-09 04:27:49 +01:00
}
}