-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
className
should be table-active
by default
#2
Comments
Do you mean the class on the There isn't actually an option to change that in Select at the moment, but I can add that. I think the Bootstrap |
Hi @AllanJard, I mean the class name on the If you look at my previous link on Bootstrap documentation, the class You already provide an option to change that class: https://datatables.net/reference/option/select.className I tried to override the default value but it did not work: $.extend(true, DataTable.defaults, {
select: {
className: 'table-active'
}
); I also tried: $.extend(true, DataTable.defaults.ext.select, {
className: 'table-active'
); Not sure what I am doing wrong. Note: if I use that option directly when creating a datatable, it works. |
I don't think you are doing anything wrong, it just does support setting a default yet. That is an oversight on my part and something that I need to address. |
The default
className
for Bootstrap 5 tables should betable-active
instead ofselected
as in the Bootstrap 5 documentation:https://getbootstrap.com/docs/5.3/content/tables/#active-tables
The text was updated successfully, but these errors were encountered: