You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttotalsCosmetics={// set the style for target cellfont: {bold: true,color: {rgb: "CCFFCC"}},fill: {bgColor: {rgb: "FF0000"}}}functionaddCosmetics(ws,range,headerFormat){// set styling of the header cells.for(letR=range.s.r;R<=range.e.r;++R){for(letC=range.s.c;C<=range.e.c;++C){letcell_address={c:C,r:R}/* if an A1-style address is needed, encode the address */letcell_ref=XLSX.utils.encode_cell(cell_address)ws[cell_ref].s=headerFormat}}}addCosmetics(ws,{s:{c:0,r:(aoa.length-1)},e:{c:18,r:(aoa.length-1)}},totalsCosmetics)
The color for the font seems to be working but the background is not. It actually has background but the color is always black. See sample output below:
The text was updated successfully, but these errors were encountered:
The color for the font seems to be working but the background is not. It actually has background but the color is always black. See sample output below:
The text was updated successfully, but these errors were encountered: