multiple class assignation in columnDefs is not working
multiple class assignation in columnDefs is not working
![vismark](https://secure.gravatar.com/avatar/9c8e124234af56336e7778bc93d3eeb9/?default=https%3A%2F%2Fvanillicon.com%2F9c8e124234af56336e7778bc93d3eeb9_200.png&rating=g&size=120)
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