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