Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Styling pdfHtml5 messageTop for a function return variable.

$
0
0

Hello @allan @kthorngren
I have tried to style my pdfHtml5 messageTop which is using a function return. Tried all the option without any success. Below is the code I tried :
messageTop: { text: 'ESM | List of <?php echo $emp_name; ?>' + '\n' + $("div.toolbar").text(), fontSize: 10, fontFamily: 'Poppins sans-serif', bold: true, italics: false, alignment: 'center' }
and
messageTop: function(){ return 'ESM | List of <?php echo $emp_name; ?>' + '\n'+ $("div.toolbar").text(); }, customize: function(doc) { doc.styles.messageTop = { color: 'red', fontSize: '10', fontFamily: 'Poppins sans-serif', background: 'blue', alignment: 'center' }
and also tried to use a plan CSS
#example .datatables .messageTop { font-size: 10px; text-align: center; font-family: 'Poppins sans-serif'; }

Is there any way this can be achieved. Want to make the messageTop loo like


Viewing all articles
Browse latest Browse all 2364

Trending Articles