Breaking Change. Swap arguments around and make default WidthType

This commit is contained in:
Dolan Miu
2018-11-15 03:00:26 +00:00
parent 28556f277b
commit e19890e27a
7 changed files with 50 additions and 11 deletions

View File

@ -20,7 +20,7 @@ const table = doc.createTable(2, 2).float({
relativeVerticalPosition: RelativeVerticalPosition.BOTTOM,
});
table.setFixedWidthLayout();
table.setWidth(WidthType.DXA, 4535);
table.setWidth(4535, WidthType.DXA);
table.getCell(0, 0).addContent(new Paragraph("Hello"));
table.getRow(0).mergeCells(0, 1);