6 lines
1.5 KiB
JavaScript
Executable File
6 lines
1.5 KiB
JavaScript
Executable File
/*!
|
|
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
|
|
* Copyright 2018 PIXINVENT
|
|
* Licensed under the Themeforest Standard Licenses
|
|
*/
|
|
$(document).ready(function(){$(".datacol-basic-initialisation").DataTable({colReorder:!0}),$(".datacol-scrolling-table").dataTable({scrollY:"200px",paging:!1,colReorder:!0}),$(".datacol-column-ordering").dataTable({colReorder:{order:[4,3,2,1,0,5]}}),$(".datacol-column-filtering tfoot th").each(function(){var title=$(".datacol-column-filtering thead th").eq($(this).index()).text();$(this).html('<input type="text" placeholder="Search '+title+'" />')});var tableFiltering=$(".datacol-column-filtering").DataTable({colReorder:!0});$(".datacol-column-filtering tfoot input").on("keyup change",function(){tableFiltering.column($(this).parent().index()+":visible").search(this.value).draw()});var tableResetOrdering=$(".datacol-reset-ordering").DataTable({colReorder:!0});$(".reset").on("click",function(e){e.preventDefault(),tableResetOrdering.colReorder.reset()});var table=$(".datacol-visibility-integration").DataTable({dom:"Bfrtip",colReorder:!0,buttons:["colvis"]}),table=$(".datacol-cixedcolumns-integration").DataTable({scrollX:!0,scrollCollapse:!0,columnDefs:[{orderable:!1,targets:0},{orderable:!1,targets:-1}],ordering:[[1,"asc"]],colReorder:{fixedColumnsLeft:1,fixedColumnsRight:1}});new $.fn.dataTable.FixedColumns(table,{leftColumns:1,rightColumns:1});var table=$(".datacol-responsive-integration").dataTable({colReorder:!0,responsive:!0,columnDefs:[{targets:2,responsivePriority:10001}]})}); |