UNPKG

datatables.net-autofill-bs5

Version:

AutoFill for DataTables with styling for [Bootstrap5](https://getbootstrap.com/)

56 lines (46 loc) 1.28 kB
/*! AutoFill Bootstrap 5 styling 3.0.0 for DataTables * Copyright (c) SpryMedia Ltd - datatables.net/license */ (function(factory){ if (typeof define === 'function' && define.amd) { // AMD define(['datatables.net-bs5', 'datatables.net-autofill'], function (dt) { return factory(window, document, dt); }); } else if (typeof exports === 'object') { // CommonJS var cjsRequires = function (root) { if (! root.DataTable) { require('datatables.net-bs5')(root); } if (! window.DataTable.AutoFill) { require('datatables.net-autofill')(root); } }; if (typeof window === 'undefined') { module.exports = function (root) { if (! root) { // CommonJS environments without a window global must pass a // root. This will give an error otherwise root = window; } cjsRequires(root); return factory(root, root.document, root.DataTable); }; } else { cjsRequires(window); module.exports = factory(window, window.document, window.DataTable); } } else { // Browser factory(window, document, window.DataTable); } }(function(window, document, DataTable) { 'use strict'; DataTable.AutoFill.classes.btn = 'btn btn-secondary'; DataTable.AutoFill.classes.close = 'btn-close'; return DataTable; }));