flip columns on excel export

flip columns on excel export

oodeh98oodeh98 Posts: 1Questions: 1Answers: 0

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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    When you say "flip columns", do you means columns 1,2,3,4 would be 4,3,2,1 on the export?

    Colin

Sign In or Register to comment.