diff --git a/src/file/table/table-cell/table-cell-components.ts b/src/file/table/table-cell/table-cell-components.ts index 7099fea33a..6fce6c9bad 100644 --- a/src/file/table/table-cell/table-cell-components.ts +++ b/src/file/table/table-cell/table-cell-components.ts @@ -66,6 +66,22 @@ export class TableCellBorders extends XmlComponent { return this; } + + public addLeftBorder(style: BorderStyle, size: number, color: string): TableCellBorders { + const left = new BaseTableCellBorder("w:left"); + left.setProperties(style, size, color); + this.root.push(left); + + return this; + } + + public addRightBorder(style: BorderStyle, size: number, color: string): TableCellBorders { + const right = new BaseTableCellBorder("w:right"); + right.setProperties(style, size, color); + this.root.push(right); + + return this; + } } /**