buttons.bootstrap4.min.js 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
/*!
 Bootstrap integration for DataTables' Buttons
 ©2016 SpryMedia Ltd - datatables.net/license
*/
(function(c) {
      "function" === typeof define && define.amd ? define(["jquery", "datatables.net-bs4", "datatables.net-buttons"], function(a) {
          return c(a, window, document)
      }) : "object" === typeof exports ? module.exports = function(a, b) {
          a || (a = window);
          if (!b || !b.fn.dataTable) b = require("datatables.net-bs4")(a, b).$;
          b.fn.dataTable.Buttons || require("datatables.net-buttons")(a, b);
          return c(b, a, a.document)
      } : c(jQuery, window, document)
  })(function(c) {
      var a = c.fn.dataTable;
      c.extend(!0, a.Buttons.defaults, {
          dom: {
              container: {
                  className: "dt-buttons"
              },
              button: {
                  className: "btn btn-round  btn-primary"
              },
              collection: {
                  tag: "div",
                  className: "dt-button-collection dropdown-menu",
                  button: {
                      tag: "a",
                      className: "dt-button dropdown-item",
                      active: "active",
                      disabled: "disabled"
                  }
              }
          }
      });
      a.ext.buttons.collection.className += " dropdown-toggle";
      return a.Buttons
  });