Header export issue

Header export issue

samrajsamraj Posts: 6Questions: 1Answers: 1
edited April 24 in Free community support

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

Sign In or Register to comment.