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.

44 line
1.4KB

  1. /*! FixedColumns 4.0.1
  2. * 2019-2021 SpryMedia Ltd - datatables.net/license
  3. */
  4. (function () {
  5. 'use strict';
  6. /*! Bootstrap 4 integration for DataTables' FixedColumns
  7. * ©2016 SpryMedia Ltd - datatables.net/license
  8. */
  9. (function (factory) {
  10. if (typeof define === 'function' && define.amd) {
  11. // AMD
  12. define(['jquery', 'datatables.net-bs4', 'datatables.net-fixedcolumns'], function ($) {
  13. return factory($);
  14. });
  15. }
  16. else if (typeof exports === 'object') {
  17. // CommonJS
  18. module.exports = function (root, $) {
  19. if (!root) {
  20. root = window;
  21. }
  22. if (!$ || !$.fn.dataTable) {
  23. // eslint-disable-next-line @typescript-eslint/no-var-requires
  24. $ = require('datatables.net-bs4')(root, $).$;
  25. }
  26. if (!$.fn.dataTable.SearchPanes) {
  27. // eslint-disable-next-line @typescript-eslint/no-var-requires
  28. require('datatables.net-fixedcolumns')(root, $);
  29. }
  30. return factory($);
  31. };
  32. }
  33. else {
  34. // Browser
  35. factory(jQuery);
  36. }
  37. }(function ($) {
  38. var dataTable = $.fn.dataTable;
  39. return dataTable.fixedColumns;
  40. }));
  41. }());