flip columns on excel export
flip columns on excel export
oodeh98
Posts: 1Questions: 1Answers: 0
in DataTables
I want to customize my excel export to flip columns on export.
I have tried to reach table content using this.
customize: function (doc) {
var instance = $("#" + id).DataTable();
$(instance.context[0].nTable).find('tr').each(function (ix, row) {
var arr = Array.from($($(row).find('th'))).reverse();
});
}
but now I'm stuck.
Answers
When you say "flip columns", do you means columns 1,2,3,4 would be 4,3,2,1 on the export?
Colin