5
if (typeof define === 'function' && define.amd) {
7
define(['jquery', 'datatables.net-bs4', 'datatables.net-searchpanes'], function ($) {
8
return factory($, window, document);
11
else if (typeof exports === 'object') {
13
module.exports = function (root, $) {
17
if (!$ || !$.fn.dataTable) {
19
$ = require('datatables.net-bs4')(root, $).$;
21
if (!$.fn.dataTable.SearchPanes) {
23
require('datatables.net-searchpanes')(root, $);
25
return factory($, root, root.document);
30
factory(jQuery, window, document);
32
}(function ($, window, document) {
34
var dataTable = $.fn.dataTable;
35
$.extend(true, dataTable.SearchPane.classes, {
36
buttonGroup: 'btn-group',
37
disabledButton: 'disabled',
42
paneButton: 'btn btn-light',
43
pill: 'pill badge badge-pill badge-secondary',
44
search: 'form-control search',
45
searchCont: 'input-group',
46
searchLabelCont: 'input-group-append',
47
subRow1: 'dtsp-subRow1',
48
subRow2: 'dtsp-subRow2',
49
table: 'table table-sm table-borderless',
52
$.extend(true, dataTable.SearchPanes.classes, {
53
clearAll: 'dtsp-clearAll btn btn-light',
54
collapseAll: 'dtsp-collapseAll btn btn-light',
55
container: 'dtsp-searchPanes',
56
disabledButton: 'disabled',
57
panes: 'dtsp-panes dtsp-panesContainer',
58
showAll: 'dtsp-showAll btn btn-light',
60
titleRow: 'dtsp-titleRow'
62
return dataTable.searchPanes;