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

24 lines
610 B
TypeScript
Raw Normal View History

2017-03-09 09:45:01 +01:00
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";
2016-04-09 04:27:49 +01:00
2017-03-09 09:45:01 +01:00
interface IStyleAttributesProperties {
2016-04-09 04:27:49 +01:00
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 {
2017-03-09 09:45:01 +01:00
private _attr: IStyleAttributesProperties;
2016-04-09 04:27:49 +01:00
2017-03-09 09:45:01 +01:00
constructor(properties: IStyleAttributesProperties) {
2016-05-03 04:31:08 +01:00
super({
type: "w:type",
styleId: "w:styleId",
default: "w:default",
customStyle: "w:customStyle",
2017-03-09 09:45:01 +01:00
val: "w:val",
2016-05-19 23:05:52 +01:00
}, properties);
2016-04-09 04:27:49 +01:00
}
2017-03-09 09:45:01 +01:00
}