Export button

Export button

StefanoWeblinkStefanoWeblink Posts: 2Questions: 1Answers: 0

Hi, i followed the tutorial to add to my table the export button, but it doesn't appears.
Should tou help me to understand where am i wronging?

Answers

  • StefanoWeblinkStefanoWeblink Posts: 2Questions: 1Answers: 0
    $(document).ready( function () { $('#loader').hide(); $('#controlPanel').show(); var table = $('#controlPanel').DataTable ( { dom: 'Bfrtip', buttons: [ 'csv', 'excel', 'pdf', 'print' ], paging: true, scrollY: 400, } ); // ricerca su tutti i campi table.columns().every( function () { var that = this; $( 'input', this.footer() ).on( 'keyup change', function () { if ( that.search() !== this.value ) { that.search( this.value ).draw(); } } ); } ); } );

    and this the header of the table:

    <

    table id="controlPanel" class="display" style="width:100%; display: none;">
    <thead>
    <tr>
    <th>Articolo</th>
    <th>Descrizione</th>
    <th>Codice</th>
    <th>Prima Class.</th>
    <th>Terza Class.</th>
    <th>Catatogo 2018</th>
    <th>Vis IT</th>
    <th>Vis EN</th>
    <th>Novità Fam.</th>
    <th>Vis Cod.</th>
    <th>Novità Cod.</th>
    <th>Tipo Prodotto</th>
    <th>Allegati</th>
    <th>Foto</th>
    <th>Link prodotto</th>
    </tr>

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Can you link to a page showing the issue so we can help to debug it please.

    Allan

This discussion has been closed.