Define "align to right"
Define "align to right"
uskerine
Posts: 33Questions: 15Answers: 0
Where should "align to right" be defined for one column?
I have a column with prices and I would like to have it right aligned.
Is there any option under "columnDefs" that could be used?
Should something different be used?
Thanks!,
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Assign a CSS class like so:
http://datatables.net/reference/option/columns.className
Also worth pointing out the the default DataTables CSS now has a number of classes which can be used for text alignment: http://datatables.net/manual/styling/classes#Cell-classes . Assign the class using
columns.className
as @tangerine says.Allan
Thanks a lot.