Skip to content

Commit

Permalink
4dc418cfa9a5ba0ca32f53590c229c14a27a7d39 New: Ability to give a custo…
Browse files Browse the repository at this point in the history
…m class to the row selection checkbox

New: Bootstrap 5 integration makes use of this to style the checkboxes

Looks like only Bootstrap 5 will benefit from this at the moment. BS3/4,
Bulma and Semantic UI don't have a class to apply directly.

Sync to source repo @4dc418cfa9a5ba0ca32f53590c229c14a27a7d39
  • Loading branch information
dtbuild committed May 2, 2024
1 parent f1dbcf1 commit 49db7e9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
],
"src-repo": "http://github.com/DataTables/Select",
"last-tag": "2.0.1",
"last-sync": "0278c079772272387c3d8a3363fc4951740f6763"
"last-sync": "4dc418cfa9a5ba0ca32f53590c229c14a27a7d39"
}
2 changes: 2 additions & 0 deletions js/select.bootstrap5.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ var DataTable = $.fn.dataTable;



DataTable.select.classes.checkbox = 'form-check-input';


return DataTable;
}));
2 changes: 1 addition & 1 deletion js/select.bootstrap5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/select.bootstrap5.min.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Bootstrap 5 styling wrapper for Select
* © SpryMedia Ltd - datatables.net/license
*/
import jQuery from"jquery";import DataTable from"datatables.net-bs5";import select from"datatables.net-select";let $=jQuery;export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net-bs5";import select from"datatables.net-select";let $=jQuery;DataTable.select.classes.checkbox="form-check-input";export default DataTable;
2 changes: 2 additions & 0 deletions js/select.bootstrap5.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ import select from 'datatables.net-select';
let $ = jQuery;


DataTable.select.classes.checkbox = 'form-check-input';


export default DataTable;

0 comments on commit 49db7e9

Please sign in to comment.