Customize left and right cell borders (for Google Docs)

This commit is contained in:
fmuscolino
2019-03-05 10:39:18 +01:00
parent 4fd2b6f1d3
commit ca9ce01f56

View File

@ -66,6 +66,22 @@ export class TableCellBorders extends XmlComponent {
return this; 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;
}
} }
/** /**