Advertisement
Guest User

Untitled

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