gitbrent / xlsx-js-style

SheetJS Community Edition + Basic Cell Styles
https://gitbrent.github.io/xlsx-js-style/
Apache License 2.0
390 stars 61 forks source link

i have set style to cell, but not reflecting #4

Closed kvprasad505 closed 2 years ago

kvprasad505 commented 2 years ago

above is the CDN iam using.

let ws = XLSX.utils.table_to_sheet(document.getElementById(id));
let wb = XLSX.utils.book_new();

 ws["B2"].s = {
      alignment: {
        wrapText: true,
      },
      font: {
        bold: true,
      },
    };
XLSX.utils.book_append_sheet(wb, ws, 'sheet1');
return XLSX.writeFile(wb, 'filename.xlsx');

i have set "Bold" and "wrapText" for B2 cell, but no style is reflecting, i request to suggest me a solution for this issue.

gitbrent commented 2 years ago

@kvprasad505 - see Issue #2