Header export issue
Header export issue
I'm using the following code in datatable with server side set to true
var buttonCommon = {
exportOptions: {
format: {
header: function ( text, index, node ) {
// Change column header if it includes something
return text.includes("something") ?
text.replace( 'something', 'some other thing' ) :
text;
}
}
}
};
but in the excel It's not replacing it's actually only increasing the width of the column.
This question has an accepted answers - jump to answer
Answers
Found the solution for this in another discussion https://datatables.net/forums/discussion/comment/229511/#Comment_229511