I have a problem when attempting to change my printed page title's font. I've used the customize method based on this documentation
and here's my code:
$(document).ready(function() {
$('#tabelservis').DataTable( {
"columnDefs": [
{ "type": "numeric-comma", targets: [0, 3] }
],
dom: 'Bfrtip',
buttons: [
{
extend: 'copyHtml5',
exportOptions: {
columns: [ 0, ':visible' ]
}
},
{
extend: 'excel',
exportOptions: {
columns: [ 0,1, 2, 3, 4 ]
}
},
{
extend: 'print',
title: 'All of Services',
exportOptions: {
columns: [ 0,1, 2, 3, 4 ]
},
customize: function ( win ) {
$(win.document.body)
.css( 'font-size', '12px' );
$(win.document.body).find( 'table' )
.css( 'font-size', '12px' );
}
}
]
} );
} );
But still the title font is not changing, here's the screenshot:
As you can see, the big "All of services" still has big font size.
Any suggestions to solve this? Thank you
