multiple class assignation in columnDefs is not working
multiple class assignation in columnDefs is not working
vismark
Posts: 79Questions: 5Answers: 0
I'm unable to assign more than 1 column class. While this is working correctly:
columnDefs: [{ className: "my_second_class", targets: 1 }]
this is not:
columnDefs: [{ className: "my_class", targets: "_all" }, { className: "my_second_class", targets: 1 }]
Library version is 1.10.18
This discussion has been closed.
Replies
Hi @vismark ,
If you put
my_second_class
before the_all
, it will take effect - see example here. The higher values take precedence, and overwrite what comes later. If you want column 1 to have both classes, you can just space-separate them as in my example.Cheers,
Colin