searchPanes.dataTables.js 1.1 KB

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