Skip to content
ExcelJs실무 경험

When long text isn't displayed within a cell in ExcelJS

1 min readWorkMoved from my Tistory blogRead the Korean original

js
worksheet.getCell(`B${26 + responsiveItemLength}`).alignment = {    vertical: 'top',    wrapText: true,  };

Apply wrapText: true to that cell and the text won't run outside it.

If you also apply vertical: 'top', it is aligned to the top.

  • #exceljs
  • #long text
  • #not displayed
  • #cell area

More in Work