The page has a datatables link , I would like to hide the items that are created by it at the time of printing, example: search field, paging etc.
My datatable looks like this:
<script>
$(document).ready(function () {
$('#minhaTabela').DataTable({
"language": {
"lengthMenu": "Mostrando _MENU_ registros por página",
"zeroRecords": "Nada encontrado",
"info": "Mostrando página _PAGE_ de _PAGES_",
"infoEmpty": "Nenhum registro disponível",
"infoFiltered": "(filtrado de _MAX_ registros no total)",
"sEmptyTable": "Nenhum registro encontrado",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando 0 até 0 de 0 registros",
"sInfoFiltered": "(Filtrados de _MAX_ registros)",
"sInfoPostFix": "",
"sInfoThousands": ".",
"sLengthMenu": "_MENU_ resultados por página",
"sLoadingRecords": "Carregando...",
"sProcessing": "Processando...",
"sZeroRecords": "Nenhum registro encontrado",
"sSearch": "Pesquisar",
"oPaginate": {
"sNext": "Próximo",
"sPrevious": "Anterior",
"sFirst": "Primeiro",
"sLast": "Último"
},
"oAria": {
"sSortAscending": ": Ordenar colunas de forma ascendente",
"sSortDescending": ": Ordenar colunas de forma descendente"
}
}
});
});
</script>
To make the impression I'm using css print and put that way to hide more did not work.
.lengthMenu,
.zeroRecords,
.info,
.infoEmpty,
.infoFiltered,
.sEmptyTable,
.sInfo,
.sInfoEmpty,
.sInfoFiltered,
.sInfoPostFix,
.sInfoThousands,
.sLengthMenu,
.sLoadingRecords,
.sProcessing,
.sZeroRecords,
.sSearch,
.oPaginate,
.oAria {
display: none;
}
I would also like to hide the name of the window and the footer that the function takes from the browser.