Add table column and vertical merging
This commit is contained in:
@ -17,7 +17,7 @@ export class TableProperties extends XmlComponent {
|
||||
this.root.push(this.cellMargin);
|
||||
}
|
||||
|
||||
public setWidth(width: number | string, type: WidthType = WidthType.AUTO): TableProperties {
|
||||
public setWidth(width: number, type: WidthType = WidthType.AUTO): TableProperties {
|
||||
this.root.push(new PreferredTableWidth(type, width));
|
||||
return this;
|
||||
}
|
||||
|
@ -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 }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user