Edit File: datatable_custom.js
var dataListView = $('.data-list-view').DataTable( { dom: '<"top"<"actions action-btns"B><"action-filters"lf>><"clear">rti<"bottom"<"actions">p> ', aLengthMenu: [[20, 50, 100], [20, 50, 100]], order: false, "pagingType": "simple_numbers" , "info": true, "paging": true, "ordering": false, language: { url:'https://cdn.datatables.net/plug-ins/1.13.4/i18n/'+ lang +'.json' // "zeroRecords": zeroRecordsText, // "sSearch": SearchText, // "lengthMenu": lengthMenuText1 + " _MENU_ " + lengthMenuText2, // "sProcessing": sProcessing, // "sInfo": sInfo, // "sInfoPostFix": "", // "sUrl": "", // 'sInfoEmpty':sInfoEmpty, // "paginate": { // "next": nextText, // "previous": previousText // }, // // language : { // // "sSearch": SearchText, // // "sProcessing": sProcessing, // // "sLengthMenu": sLengthMenu, // // "sZeroRecords": sZeroRecords, // // "sInfo": sInfo, // // "sInfoEmpty": sInfoEmpty, // // "sInfoFiltered":sInfoFiltered , // // "sInfoPostFix": "", // // "searchPlaceholder": searchPlaceholder , // // "sUrl": "", // // "paginate": { // // "sFirst": sFirst, // // "previous":sPrevious , // // "next":sNext , // // "sLast":sLast // // } // // }, }, buttons: [ { extend: 'copyHtml5', text: copyText, exportOptions: { columns: [':not(:last,:first)' ], } }, { text: 'JSON', text: jsonText, exportOptions: { columns: [':not(:last,:first)'], }, footer: false, action: function ( e, dt, button, config ) { var data = dt.buttons.exportData({ columns: [':not(:last,:first)'], }); $.fn.dataTable.fileSave( new Blob( [ JSON.stringify( data ) ] ), Export + '.json', ); }, }, { extend: 'print', text: printText, exportOptions: { columns: [':not(:last,:first)'], } } ], });
Back to File Manager