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

idealUdonidealUdon Posts: 3Questions: 1Answers: 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

Sign In or Register to comment.