aaColumnDefs: sClass: right doesn't seem to work
aaColumnDefs: sClass: right doesn't seem to work

Hi,
If I use this:
[code]
"aoColumnDefs": [
{ "sClass": "center", "aTargets": [ 3 ] }
]
[/code]
everything works fine and the values in the column specified are aligned to center. But if I use this:
[code]
"aoColumnDefs": [
{ "sClass": "right", "aTargets": [ 3 ] }
]
[/code]
all the values are aligned to the left. Can't I align values to the right with aoColumnDefs?
Thanks!
Peter
If I use this:
[code]
"aoColumnDefs": [
{ "sClass": "center", "aTargets": [ 3 ] }
]
[/code]
everything works fine and the values in the column specified are aligned to center. But if I use this:
[code]
"aoColumnDefs": [
{ "sClass": "right", "aTargets": [ 3 ] }
]
[/code]
all the values are aligned to the left. Can't I align values to the right with aoColumnDefs?
Thanks!
Peter
This discussion has been closed.
Replies
[code]
td.right {
text-align: right;
}
[/code]
?
Because without that, it ain't going to work :-)
Allan