I am using Datatables and the excelHtml5 button extension via Javascript & jQuery. You will see in the beginning of the code the text "Hello" in the title property. I am also using messageTop, customize, and createEmptyCells for other formatting purposes. In the attachment you will see the resulting "Hello" text circled in red.
buttons: [
{
extend: 'excelHtml5',
text: '<h2>EXPORT TO EXCEL</h2>', //'Export to Excel',
//orientation: 'landscape',
//pageSize: '11x17',
title: 'Hello',
messageTop: function () {
var today = new Date();
I need to insert a legend image (.png) on the top. Is there any way to do this? Alternatively, if I cannot get in image in the title property I could format each cell of the title to look like the legend but I am not sure how to do this in the title property (I would need to unmerge the title and get access to each cell)?
I was thinking along the lines of..
title: function() {
var imgProcessMap = $("#imgProcessMap");
return imgProcessMap;
},
...but this returns the object.