1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
"use strict";var KTDatatablesBasicBasic={init:function(){var t;(t=$("#kt_datatable")).DataTable({responsive:!0,dom:"<'row'<'col-sm-12'tr>>\n\t\t\t<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7 dataTables_pager'lp>>",lengthMenu:[5,10,25,50],pageLength:10,language:{lengthMenu:"Display _MENU_"},order:[[1,"desc"]],headerCallback:function(t,a,l,s,e){t.getElementsByTagName("th")[0].innerHTML='\n <label class="checkbox checkbox-single">\n <input type="checkbox" value="" class="group-checkable"/>\n <span></span>\n </label>'},columnDefs:[{targets:0,width:"30px",className:"dt-left",orderable:!1,render:function(t,a,l,s){return'\n <label class="checkbox checkbox-single">\n <input type="checkbox" value="" class="checkable"/>\n <span></span>\n </label>'}},{targets:-1,title:"Actions",orderable:!1,width:"125px",render:function(t,a,l,s){return'\t <div class="dropdown dropdown-inline">\t <a href="javascript:;" class="btn btn-sm btn-clean btn-icon mr-2" data-toggle="dropdown">\t <span class="svg-icon svg-icon-md">\t <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">\t <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\t <rect x="0" y="0" width="24" height="24"/>\t <path d="M5,8.6862915 L5,5 L8.6862915,5 L11.5857864,2.10050506 L14.4852814,5 L19,5 L19,9.51471863 L21.4852814,12 L19,14.4852814 L19,19 L14.4852814,19 L11.5857864,21.8994949 L8.6862915,19 L5,19 L5,15.3137085 L1.6862915,12 L5,8.6862915 Z M12,15 C13.6568542,15 15,13.6568542 15,12 C15,10.3431458 13.6568542,9 12,9 C10.3431458,9 9,10.3431458 9,12 C9,13.6568542 10.3431458,15 12,15 Z" fill="#000000"/>\t </g>\t </svg>\t </span>\t </a>\t <div class="dropdown-menu dropdown-menu-sm dropdown-menu-right">\t <ul class="navi flex-column navi-hover py-2">\t <li class="navi-header font-weight-bolder text-uppercase font-size-xs text-primary pb-2">\t Choose an action:\t </li>\t <li class="navi-item">\t <a href="#" class="navi-link">\t <span class="navi-icon"><i class="la la-print"></i></span>\t <span class="navi-text">Print</span>\t </a>\t </li>\t <li class="navi-item">\t <a href="#" class="navi-link">\t <span class="navi-icon"><i class="la la-copy"></i></span>\t <span class="navi-text">Copy</span>\t </a>\t </li>\t <li class="navi-item">\t <a href="#" class="navi-link">\t <span class="navi-icon"><i class="la la-file-excel-o"></i></span>\t <span class="navi-text">Excel</span>\t </a>\t </li>\t <li class="navi-item">\t <a href="#" class="navi-link">\t <span class="navi-icon"><i
|