You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
1.8 KiB

!function (t) {
"use strict";
var a = function () {
this.$dataTableButtons = t("#datatable-buttons");
};
a.prototype.createDataTableButtons = function () {
0 !== this.$dataTableButtons.length && this.$dataTableButtons.DataTable({
dom: "Bfrtip",
buttons: [
//{
// extend: "copy",
// className: "btn-success fa fa-files-o"
//},
//{
// extend: "csv",
// className: "btn-info fa fa-file-excel-o"
//},
//{
// extend: "excel",
// className: "btn-warning fa fa-file-excel-o"
//},
{
extend: "pdf",
className: "btn-warning fa fa-file-pdf-o"
},
{
extend: "print",
className: "btn-danger fa fa-print"
}],
responsive: !0
});
},
a.prototype.init = function () {
t("#datatable").dataTable(), t("#datatable-keytable").DataTable({
keys: !0
}), t("#datatable-responsive").DataTable(), t("#datatable-scroller").DataTable({
ajax: "../Plugins/datatables/json/scroller-demo.json",
deferRender: !0,
scrollY: 380,
scrollCollapse: !0,
scroller: !0
});
t("#datatable-fixed-header").DataTable({
fixedHeader: !0
});
this.createDataTableButtons();
}, t.DataTable = new a, t.DataTable.Constructor = a;
}(window.jQuery),
function (t) {
"use strict";
t.DataTable.init();
}(window.jQuery);