Add table column and vertical merging

This commit is contained in:
Dolan
2019-03-04 22:50:04 +00:00
parent 4fd2b6f1d3
commit efd89f24e6
6 changed files with 59 additions and 6 deletions

View File

@ -1,3 +1,4 @@
// http://officeopenxml.com/WPtableWidth.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { WidthType } from "../table-cell";
@ -12,7 +13,7 @@ class TableWidthAttributes extends XmlAttributeComponent<ITableWidth> {
}
export class PreferredTableWidth extends XmlComponent {
constructor(type: WidthType, w: number | string) {
constructor(type: WidthType, w: number) {
super("w:tblW");
this.root.push(new TableWidthAttributes({ type, w }));
}