Unable to use Bootstrap's contextual classes for coloring rows with DataTables v2.0
Unable to use Bootstrap's contextual classes for coloring rows with DataTables v2.0
Link to test case: https://live.datatables.net/fosemefu/1/
Debugger code (debug.datatables.net):
Error messages shown: none
Description of problem:
When using datatables with bootstrap, I expect table rows with class table-primary
to be colored with Bootstrap's primary color (light blue by default). Link to the relevant Bootstrap documentation here: https://getbootstrap.com/docs/5.3/content/tables/#variants
I've linked to a test case which is reproducing the issue; is it possible I'm implementing DataTables/Bootstrap incorrectly? If my configuration looks correct, can I add some custom CSS to override DataTables' CSS to continue using Bootstrap's contextual classes (table-primary
etc.)? I'm not using default colors and would prefer to not have to manually add them.
Thanks for any help that's offered!
This question has an accepted answers - jump to answer
Answers
Oops, couldn't figure out how to edit my post but here is a link to the editable js bin: https://live.datatables.net/fosemefu/1/edit
I'm afraid that I don't have an immediate solution for you here. It is an issue I'm aware of through this issue on Github. Need to make some time to look into it.
Allan
Thanks for the quick response @allan! Solves my head scratching at least