how do you add two or more styles on button export?

how do you add two or more styles on button export?

ttse23ttse23 Posts: 10Questions: 3Answers: 0

I am currently trying to add a header that is centered and has a grey background.

$('table.data-table').DataTable({


      dom: 'Bfrtip',
    buttons: [
        {
            extend: 'excel',
            text: 'Save as Excel',
            customize: function( xlsx ) {
                var sheet = xlsx.xl.worksheets['sheet1.xml'];
               $('row:first c', sheet).attr( 's', '42');
                
            },
         
        }
    ]

This discussion has been closed.