2
if (typeof define === 'function' && define.amd) {
4
define(['jquery', 'datatables.net-bs4', 'datatables.net-searchbuilder'], function ($) {
8
else if (typeof exports === 'object') {
10
module.exports = function (root, $) {
14
if (!$ || !$.fn.dataTable) {
16
$ = require('datatables.net-bs4')(root, $).$;
18
if (!$.fn.dataTable.searchBuilder) {
20
require('datatables.net-searchbuilder')(root, $);
31
var dataTable = $.fn.dataTable;
32
$.extend(true, dataTable.SearchBuilder.classes, {
33
clearAll: 'btn btn-light dtsb-clearAll'
35
$.extend(true, dataTable.Group.classes, {
36
add: 'btn btn-light dtsb-add',
37
clearGroup: 'btn btn-light dtsb-clearGroup',
38
logic: 'btn btn-light dtsb-logic'
40
$.extend(true, dataTable.Criteria.classes, {
41
condition: 'form-control dtsb-condition',
42
data: 'form-control dtsb-data',
43
"delete": 'btn btn-light dtsb-delete',
44
left: 'btn btn-light dtsb-left',
45
right: 'btn btn-light dtsb-right',
46
value: 'form-control dtsb-value'
48
return dataTable.searchPanes;