Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Datatables Change Column Colors

jyappcloudcentech premium asked 5 years ago


I would like to use Datatables to display some information. I would like to know if the vue version has the following capabilities

  1. Can I add complexed headers with rowspan and colspan like in this example https://datatables.net/examples/basic_init/complex_header.html
  2. Can I change my column's colors?

Magdalena Dembna staff answered 5 years ago


All available options and properties are listed here: https://mdbootstrap.com/docs/vue/tables/datatables/ - unfortunately complex headers are not one of them. Changing a column's background is possible but only with css, for example:

tr td:nth-child(2) {
  background-color: white;
}


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: 5.8.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes