Skip to content

Set table cell width #94

Description

@ee0jmt

Hi,

I'm struggling to change the cell width. My code below doesn't have any affect on the table (the cells are both evenly spaced) What am I doing wrong?

var table = new docx.Table(1, 2); table.getCell(0, 1).cellProperties.setWidth(80, "pct"); table.getCell(0, 0).cellProperties.setWidth(20, "pct"); doc.addTable(table);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions