jquery-table2excel icon indicating copy to clipboard operation
jquery-table2excel copied to clipboard

thead is lost..

Open oswaldo89 opened this issue 9 years ago • 0 comments

Hi I'm starting to use your library, but when exporting, the thead did not appear.

I would be delighted if you could guide me a bit ..

Cheers..

My code is this.

$("#exportExcel").click(function(){

      $('<table>')
         .append(
              //$("#example thead tr").clone().prependTo($("#example thead"))
            $("#example").DataTable().$('tr').clone()
         )
         .table2excel({
            name: "Worksheet Name",
            filename: "SomeFile" //do not include extension
         });

});

The commented line, brings me only thead, and the other, if it brings me all content.

Sorry for my bad english, im mexican. Thank you.

oswaldo89 avatar Sep 29 '15 03:09 oswaldo89