Excel export cells with color

Excel export cells with color

dobromirmarkovdobromirmarkov Posts: 2Questions: 1Answers: 0

Hi,
I have a table with selects in it which I'm trying to export with background color of the select element.
I'm using customize to do this:
customize: function( xlsx ) {
var sheet = xlsx.xl.worksheets['sheet1.xml'];
table.cells().every( function () {
var data = this.data();
if( $(data).is("select")){
var color = $(data).find(':selected').parent().css('backgroundColor');
if(color == "rgb(255, 64, 64)"){
$(data).parent().attr( 's', '35' );
console.log(color);
}

                                    }

                                } );
                        } 

I've managed to get the color with console, but cannot set it in Excel.
Can you please help?

Answers

This discussion has been closed.