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

Add heading

Open angadsule opened this issue 9 years ago • 2 comments

I need to add heading to the table, as a parameter , currently achieved using fullTemplate += e.template.mid; fullTemplate += "Report Heading";

But need ths to be dynamic with html TAGS.

angadsule avatar Aug 22 '16 19:08 angadsule

Go for it! Branch, add the feature and submit a PR :)

rainabba avatar Aug 24 '16 22:08 rainabba

Looks like that can be achieved using following code ( found that here : https://stackoverflow.com/a/38484199/889755 )

.append($(table.table().header()).clone())

$('<table>')
  .append($(table.table().header()).clone())
  .append(table.$('tr').clone())
  .table2excel({
     exclude: "",
     name: "title",
     filename: "name" 
  });

dhorions avatar Aug 18 '17 05:08 dhorions