import {XmlComponent, Attributes} from "../xml-components"; export class TableGrid extends XmlComponent { private cols: Array; constructor(cols: Array) { super('w:tblGrid'); this.cols = cols; cols.forEach(col => this.root.push(col)); } } export class GridCol extends XmlComponent { constructor(width?: number) { super('w:gridCol'); this.root.push(new Attributes({w: width.toString()})) } }