Advertisement
Guest User

Untitled

a guest
May 14th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.             $(document).ready(function() {
  3.                 let table_fornitori = $('table#lista_fornitori').DataTable( {
  4.                     "dom": "ftp",
  5.                     "responsive": true,
  6.                     "columnDefs": [
  7.                         { responsivePriority: 1, targets: 1 }
  8.                     ],
  9.                     "order": [
  10.                         1,
  11.                         "asc"
  12.                     ],
  13.                     "pageLength" : 5,
  14.                     "columns": [
  15.                         null,
  16.                         null,
  17.                         null
  18.                     ],
  19.                     "language": {
  20.                         "sEmptyTable":     "Non sono stati inseriti fornitori",
  21.                         "sInfo":           "Stai visualizzando dal _START_' al _END_' di _TOTAL_ fornitori",
  22.                         "sInfoEmpty":      "Non sono stati inseriti fornitori",
  23.                         "sInfoPostFix":    "",
  24.                         "sInfoThousands":  ".",
  25.                         "sLoadingRecords": "Caricamento...",
  26.                         "sProcessing":     "Elaborazione...",
  27.                         "sSearch":         "Cerca in questa lista:",
  28.                         "sZeroRecords":    "La ricerca non ha portato alcun risultato.",
  29.                         "oPaginate": {
  30.                             "sFirst":      "Inizio",
  31.                             "sPrevious":   "Precedente",
  32.                             "sNext":       "Successivo",
  33.                             "sLast":       "Fine"
  34.                         }
  35.                     },
  36.                     "drawCallback": function( settings ) {
  37.                         $('[data-bs-toggle="tooltip"]').tooltip();
  38.                         $('div#overlay').remove();
  39.                     }
  40.                 });
  41.  
  42.                 new $.fn.dataTable.FixedHeader(table_fornitori);
  43.             });
  44.         </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement