I have a Table:
<table class="tabelaRelatorioPausas table table-condensed table-striped table-hover table-responsive " cellspacing="0" width="100%" >
<thead>
<th><i class="fa fa-headphones" ></i> Agente</th>
<th ><i class="fa fa-user-circle" ></i> Ramal</th>
<th ><i class="fa fa-clock-o" ></i> Almoço</th>
<th ><i class="fa fa-clock-o" ></i> Intervalo</th>
<th ><i class="fa fa-clock-o" ></i> Outro</th>
<th ><i class="fa fa-clock-o" ></i> Total</th>
<th ><i class="fa fa-clock-o" ></i> Zerar</th>
</thead>
<tbody>
</tbody>
</table>
and the javascript code of the DataTable:
$('.tabelaRelatorioPausas').DataTable({
dom: 'lfBrtip',
buttons: [
'csv', 'excel', 'pdf'
],
"oLanguage": {
"sLengthMenu": "Mostrando _MENU_ registros",
"sZeroRecords": "Nenhum registro encontrado",
"sInfo": "Mostrando _START_ / _END_ de _TOTAL_ registro(s)",
"sInfoEmpty": "Mostrando 0 / 0 de 0 registros",
"sInfoFiltered": "(filtrado de _MAX_ registros)",
"sSearch": "Pesquisar: ",
"oPaginate": {
"sFirst": "Início",
"sPrevious": "Anterior",
"sNext": "Próximo",
"sLast": "Último"
}
}
});
You can remove the last column (Zerar) by clicking the buttons button to generate report ( 'csv', 'excel', 'pdf'