how to apply customized column Header for Export Excel file, i am using this code but header background and font color not getting.
exportPlugin.downloadFile(‘csv’, {
exportHiddenColumns: true,
exportHiddenRows: true,
columnHeaders: true,
mimeType: 'text/csv',
charset: 'utf-8',
columnDelimiter: ',',
rowDelimiter: '\r\n',
columnHeadersCustom: function (index, header) {
// Customize column headers
return {
value: header,
background: '#002060', // Set the background color
color: '#FFFFFF', // Set the text color
alignment: 'left', // Set the text alignment
};
},
});