Button (export to excel/PDF) does not display

Button (export to excel/PDF) does not display

s.scarinzs.scarinz Posts: 2Questions: 1Answers: 1

Link to test case: https://jsfiddle.net/ykbrp4sm/3/
Debugger code (debug.datatables.net):

    $( document ).ready(function() {
        var table = $('#gvTranslations').DataTable({
            select: {
                info: false,
                style: 'single'
            },
            autoWidth: true,
            buttons: ['pdfHtml5'], //tried many variations for example ['copy', 'excel', 'pdf' ],
            stateSave: true
        });

        table.on('select', function (e, dt, type, indexes) {
            if (type === 'row') {
                table[type](indexes).nodes().to$().addClass('table-primary');
            }
        });
        table.on('deselect', function (e, dt, type, indexes) {
            if (type === 'row') {
                table[type](indexes).nodes().to$().removeClass('table-primary');
            }
        });
    });

Error messages shown: None
Description of problem: Table display correctly, but with no button (i tried many variation) is displayed.
The library is generated with automatic tool here the header of the minified file generated :

_> /*

/*!_

This question has an accepted answers - jump to answer

Answers

  • s.scarinzs.scarinz Posts: 2Questions: 1Answers: 1
    edited March 2022 Answer ✓

    Turn out i miss this part : dom: 'Bfrtip' in table initialization

Sign In or Register to comment.