Change default alignment for all but one column
Change default alignment for all but one column
jackson
Posts: 4Questions: 3Answers: 0
I want almost all of my columns to be right-aligned.
So I tried this:
"columnDefs": [
{className: 'text-right', targets: '_all'},
{className: 'text-left', targets: [0]}
],
But all the columns are now right aligned. Do I really have to enter all my columns in the targets field?
This discussion has been closed.