UNPKG

datatables.net-searchpanes-bs

Version:

SearchPanes for DataTables with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)

39 lines (33 loc) 1.12 kB
/*! Bootstrap integration for DataTables' SearchPanes * © SpryMedia Ltd - datatables.net/license */ import jQuery from 'jquery'; import DataTable from 'datatables.net-bs'; import SearchPanes from 'datatables.net-searchpanes'; // Allow reassignment of the $ variable let $ = jQuery; $.extend(true, DataTable.SearchPane.classes, { buttonGroup: 'btn-group', disabledButton: 'disabled', narrow: 'col narrow', narrowSub: 'row', pane: { container: 'table' }, paneButton: 'btn btn-light', pill: 'badge badge-pill badge-light pill', search: 'col-sm form-control search', searchCont: 'input-group dtsp-searchCont', searchLabelCont: 'input-group-btn', subRow1: 'dtsp-subRow1 text-right', subRow2: 'dtsp-subRow2 text-right', table: 'table table-condensed' }); $.extend(true, DataTable.SearchPanes.classes, { clearAll: 'dtsp-clearAll btn btn-light', collapseAll: 'dtsp-collapseAll btn btn-light', disabledButton: 'disabled', search: DataTable.SearchPane.classes.search, showAll: 'dtsp-showAll btn btn-light' }); export default DataTable;