Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var table = $('#example').DataTable( {
- ///Se adicionar botões exportar não aparecem
- columns: [
- null,
- null,
- null,
- null,
- null,
- {
- render: function(data, type, row){
- return data.split(", ").join("<br/>");
- }
- }
- ],
- ///Se adicionar botões exportar não aparecem
- lengthChange: false,
- buttons: [
- {
- extend: 'copy',
- text: 'Copiar'
- },
- {
- extend: 'print',
- text: 'Imprimir',
- message: '<?php echo $TextoArquivoExport;?>',
- },
- {
- extend: 'excelHtml5',
- title: '<?php echo $NomeArquivoExport;?>'
- },
- {
- extend: 'pdfHtml5',
- orientation: 'landscape',
- pageSize: 'LEGAL',
- fieldSeparator: 't',
- message: '<?php echo $TextoArquivoExport;?>',
- title: '<?php echo $NomeArquivoExport;?>',
- exportOptions: {
- stripNewlines: false
- }
- },
- {
- extend: 'colvis',
- text: 'Exibir/Ocultar Coluna'
- }
- ],
- language: {
- buttons: {
- copyTitle: 'Informações do relatório copiadas',
- copyKeys: 'Foram copiados <i>ctrl</i> ou <i>u2318</i> + <i>C</i> registros. <br><br>Por favor, pressione o botão ESC para sair.',
- copySuccess: {
- _: '%d registros copiados',
- 1: '1 linha copiada'
- }
- }
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement