Topic: Datatable td class ignored

katulakarol free asked 3 years ago

Expected behavior I need to add classes to some of my td in datatable. E.g. td should get specific bg-color in css.

Actual behavior Datatables are ignoring all my classes. Classnames are not even showing in developer tools in browser.

Michał Duszak staff answered 3 years ago

Table elements are not so dynamic. You can use our MDB Datatable Builder, or you can wrap td's content in a div like in the following snippet

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.5.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No