36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
/*! Bootstrap 5 integration for DataTables' SearchPanes
|
|
* © SpryMedia Ltd - datatables.net/license
|
|
*/
|
|
|
|
import $ from 'jquery';
|
|
import DataTable from 'datatables.net-bs5';
|
|
import SearchPanes from 'datatables.net-searchpanes';
|
|
|
|
$.extend(true, DataTable.SearchPane.classes, {
|
|
buttonGroup: 'btn-group',
|
|
disabledButton: 'disabled',
|
|
narrow: 'col',
|
|
pane: {
|
|
container: 'table'
|
|
},
|
|
paneButton: 'btn btn-light',
|
|
pill: 'badge rounded-pill bg-secondary',
|
|
search: 'form-control search',
|
|
table: 'table table-sm table-borderless',
|
|
topRow: 'dtsp-topRow'
|
|
});
|
|
$.extend(true, DataTable.SearchPanes.classes, {
|
|
clearAll: 'dtsp-clearAll btn btn-light',
|
|
collapseAll: 'dtsp-collapseAll btn btn-light',
|
|
container: 'dtsp-searchPanes',
|
|
disabledButton: 'disabled',
|
|
panes: 'dtsp-panes dtsp-panesContainer',
|
|
search: DataTable.SearchPane.classes.search,
|
|
showAll: 'dtsp-showAll btn btn-light',
|
|
title: 'dtsp-title',
|
|
titleRow: 'dtsp-titleRow'
|
|
});
|
|
|
|
|
|
export default DataTable;
|