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.

41 lines
1.4 KiB

4 years ago
  1. /*!
  2. Bootstrap integration for DataTables' Buttons
  3. ©2016 SpryMedia Ltd - datatables.net/license
  4. */
  5. (function (c) {
  6. "function" === typeof define && define.amd ? define(["jquery", "datatables.net-bs", "datatables.net-buttons"], function (a) {
  7. return c(a, window, document)
  8. }) : "object" === typeof exports ? module.exports = function (a, b) {
  9. a || (a = window);
  10. if (!b || !b.fn.dataTable) b = require("datatables.net-bs")(a, b).$;
  11. b.fn.dataTable.Buttons || require("datatables.net-buttons")(a, b);
  12. return c(b, a, a.document)
  13. } : c(jQuery, window, document)
  14. })(function (c) {
  15. var a = c.fn.dataTable;
  16. c.extend(!0, a.Buttons.defaults, {
  17. dom: {
  18. container: {
  19. className: "dt-buttons btn-group"
  20. },
  21. button: {
  22. className: "btn btn-default"
  23. },
  24. collection: {
  25. tag: "ul",
  26. className: "dt-button-collection dropdown-menu",
  27. button: {
  28. tag: "li",
  29. className: "dt-button"
  30. },
  31. buttonLiner: {
  32. tag: "a",
  33. className: ""
  34. }
  35. }
  36. }
  37. });
  38. a.ext.buttons.collection.text = function (a) {
  39. return a.i18n("buttons.collection", 'Collection <span class="caret"/>')
  40. };
  41. return a.Buttons
  42. });