advisr-io / excel4node

Node module to allow for easy Excel file creation
MIT License
124 stars 18 forks source link

How can we add background color to cell #73

Open gdhelp03 opened 12 months ago

gdhelp03 commented 12 months ago

In color formatting how can we add background color to a cell

morganlegal commented 12 months ago

something like:

cel.style({
    fill: {
      type: 'pattern',
      patternType: 'solid',
      bgColor: '#ff0000',
      fgColor: '#ff0000',
    }
  })
madhaven commented 10 months ago

@gdhelp03 , Could you confirm if this issue is resolved ? Does the solution by @morganlegal solve your issue ?