hand-detection/assets/scripts/datatables.demo.min.js

2 lines
849 B
JavaScript
Raw Normal View History

2024-05-29 03:18:12 +00:00
!function(e){"use strict";if(e("#example").length&&e("#example").DataTable(),e("#example-scroll-y").length&&e("#example-scroll-y").DataTable({scrollY:"200px",scrollCollapse:!0,paging:!1}),e("#example-row-grouping").length){var a=e("#example-row-grouping").DataTable({columnDefs:[{visible:!1,targets:2}],order:[[2,"asc"]],displayLength:25,drawCallback:function(){var a=this.api(),t=a.rows({page:"current"}).nodes(),r=null;a.column(2,{page:"current"}).data().each(function(a,i){r!==a&&(e(t).eq(i).before('<tr class="group"><td colspan="5">'+a+"</td></tr>"),r=a)})}});e("#example-row-grouping tbody").on("click","tr.group",function(){var e=a.order()[0];return 2===e[0]&&"asc"===e[1]?a.order([2,"desc"]).draw():a.order([2,"asc"]).draw(),!1})}e("#example-edit").length&&(e("#example-edit").DataTable(),e("#example-edit").editableTableWidget())}(jQuery);