"buttons": [
{
extend: 'excelHtml5',
title: $(".companyName").text(),
filename: $('#reportTitle').text().trim(),
"createEmptyCells" : true,
sheetName: excelSheetName,
messageTop: $(".stdReportTitle").text(),
exportOptions: {
trim : false;
}
customize: function( xlsx ) {
// my code
}
}
];
The trim property not working. I want to excel exported cell content with empty spaces before text;
Ex:
Cell sting is " text"
Please help me. The cell contents are trimmed by default when i export